diff --git a/modules/gerrit/templates/gerrit.config.erb b/modules/gerrit/templates/gerrit.config.erb index ae9c8f6420..85ff5091db 100644 --- a/modules/gerrit/templates/gerrit.config.erb +++ b/modules/gerrit/templates/gerrit.config.erb @@ -64,8 +64,13 @@ <% commentlinks.each do |commentlink| -%> [commentlink "<%= commentlink['name'] %>"] match = "<%= commentlink['match'] %>" +<% if commentlink['link'] != "" -%> link = "<%= commentlink['link'] %>" <% end -%> +<% if commentlink['html'] != "" -%> + html = "<%= commentlink['html'] %>" +<% end -%> +<% end -%> [theme] backgroundColor = ffffff topMenuColor = ffffff diff --git a/modules/openstack_project/files/gerrit/GerritSite.css b/modules/openstack_project/files/gerrit/GerritSite.css index c808632b59..7b289d27d7 100644 --- a/modules/openstack_project/files/gerrit/GerritSite.css +++ b/modules/openstack_project/files/gerrit/GerritSite.css @@ -18,3 +18,30 @@ a.gwt-InlineHyperlink {background: none !important} .gwt-TabBar .gwt-TabBarItem, .gwt-TabBar .gwt-TabBarRest, .gwt-TabPanelBottom {background: 0 !important;} #gerrit_topmenu .gwt-TextBox {width: 250px} + +.comment_test_name { + display: inline-block; + *display: inline; + *zoom: 1; + width: auto !important; + width: 25em; + min-width: 20em; + padding-bottom: 2pt; +} + +.comment_test_result { +} + +.result_SUCCESS { + color: #007f00; +} +.result_FAILURE { + color: #cf2f19; +} +.result_UNSTABLE { + color: #e39f00; +} +.result_LOST { + color: #e39f00; +} +ul {list-style-type: none; } diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index 7e878462bd..3ffe12a2b2 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -139,6 +139,11 @@ class openstack_project::gerrit ( match => '(\\b[Bb]lue[Pp]rint\\b|\\b[Bb][Pp]\\b)[ \\t#:]*([A-Za-z0-9\\-]+)', link => 'https://blueprints.launchpad.net/openstack/?searchtext=$2', }, + { + name => 'testresult', + match => '