From: Stas Vilchik Date: Thu, 14 Jan 2016 13:01:54 +0000 (+0100) Subject: SONAR-7161 Update links in the coverage widgets X-Git-Tag: 5.4-M6~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44d04254b6b8ff07a0d9e6f871a8f6ff3f98461e;p=sonarqube.git SONAR-7161 Update links in the coverage widgets --- diff --git a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/coverage.html.erb b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/coverage.html.erb index e293cfa0d56..2d2bb2bc6bb 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/coverage.html.erb +++ b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/coverage.html.erb @@ -12,7 +12,7 @@
<%= message('widget.code_coverage.name') -%> - <%= format_measure(code_coverage_measure, :suffix => '', :url => url_for_drilldown('coverage'), :default => '-') %> + <%= format_measure(code_coverage_measure, :suffix => '', :url => url_for_drilldown('uncovered_lines', :highlight => 'coverage'), :default => '-') %> <%= format_variation(code_coverage_measure) if dashboard_configuration.selected_period? -%>
@@ -62,7 +62,7 @@ <%= message('widget.code_coverage.on_new_code') -%> <%= format_measure(new_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index)) %> + :url => url_for_drilldown('new_uncovered_lines', :highlight => 'new_coverage', :period => dashboard_configuration.period_index)) %> <% end %> <% if new_line_coverage %> @@ -152,5 +152,3 @@ <% end %> - - diff --git a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/it_coverage.html.erb b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/it_coverage.html.erb index 52c01fe6728..525279b7dd3 100644 --- a/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/it_coverage.html.erb +++ b/server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/it_coverage.html.erb @@ -13,7 +13,7 @@
<%= message('widget.it-coverage.name') -%> - <%= format_measure(it_coverage, :url => url_for_drilldown('it_coverage'), :default => '-') %> + <%= format_measure(it_coverage, :url => url_for_drilldown('it_uncovered_lines', :highlight => 'it_coverage'), :default => '-') %> <%= format_variation(it_coverage) if dashboard_configuration.selected_period? -%>
@@ -68,7 +68,7 @@ <%= format_measure(new_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_coverage, :period => dashboard_configuration.period_index), + :url => url_for_drilldown('new_it_uncovered_lines', :highlight => 'new_it_coverage', :period => dashboard_configuration.period_index), :default => '-') %> @@ -80,7 +80,7 @@ <%= format_measure(new_line_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_line_coverage, :period => dashboard_configuration.period_index)) %> + :url => url_for_drilldown('new_it_uncovered_lines', :highlight => 'new_it_line_coverage', :period => dashboard_configuration.period_index)) %> <% end %> @@ -91,7 +91,7 @@ <%= format_measure(new_branch_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_branch_coverage, :period => dashboard_configuration.period_index)) %> + :url => url_for_drilldown('new_it_uncovered_conditions', :highlight => 'new_it_branch_coverage', :period => dashboard_configuration.period_index)) %> <% end %> @@ -113,7 +113,7 @@
<%= message('widget.overall-coverage.name') -%> - <%= format_measure(overall_coverage, :url => url_for_drilldown('overall_coverage'), :default => '-') %> + <%= format_measure(overall_coverage, :url => url_for_drilldown('overall_uncovered_lines', :highlight => 'overall_coverage'), :default => '-') %> <%= format_variation(overall_coverage) if dashboard_configuration.selected_period? -%>
@@ -168,7 +168,7 @@ <%= format_measure(new_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_coverage, :period => dashboard_configuration.period_index), + :url => url_for_drilldown('new_overall_uncovered_lines', :highlight => 'new_overall_coverage', :period => dashboard_configuration.period_index), :default => '-') %> <%= format_variation(new_coverage) if dashboard_configuration.selected_period? -%> @@ -181,7 +181,7 @@ <%= format_measure(new_line_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_line_coverage, :period => dashboard_configuration.period_index)) %> + :url => url_for_drilldown('new_overall_uncovered_lines', :highlight => 'new_overall_line_coverage', :period => dashboard_configuration.period_index)) %> <%= format_variation(new_line_coverage) if dashboard_configuration.selected_period? -%> @@ -193,7 +193,7 @@ <%= format_measure(new_branch_coverage, :period => dashboard_configuration.period_index, - :url => url_for_drilldown(new_branch_coverage, :period => dashboard_configuration.period_index)) %> + :url => url_for_drilldown('new_overall_uncovered_conditions', :highlight => 'new_overall_branch_coverage', :period => dashboard_configuration.period_index)) %> <%= format_variation(new_branch_coverage) if dashboard_configuration.selected_period? -%>