]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7161 Update links in the coverage widgets
authorStas Vilchik <vilchiks@gmail.com>
Thu, 14 Jan 2016 13:01:54 +0000 (14:01 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 14 Jan 2016 13:02:09 +0000 (14:02 +0100)
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/coverage.html.erb
server/sonar-server/src/main/resources/org/sonar/server/dashboard/widget/it_coverage.html.erb

index e293cfa0d5604af3e74707ee28272001f5acc277..2d2bb2bc6bb245c72472b0646884fc31cddac501 100644 (file)
@@ -12,7 +12,7 @@
         <div class="widget-measure widget-measure-main">
           <span class="widget-label"><%= message('widget.code_coverage.name') -%></span>
           <span class="nowrap">
-            <%= 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? -%>
           </span>
         </div>
@@ -62,7 +62,7 @@
                     <span class="widget-label"><%= message('widget.code_coverage.on_new_code') -%></span>
                     <%= 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)) %>
                   </div>
                 <% end %>
                 <% if new_line_coverage %>
     </div>
   </div>
 <% end %>
-
-
index 52c01fe6728607545eb8ef02b27281605af08b48..525279b7dd3023d86489e74514a0d78f5e391d39 100644 (file)
@@ -13,7 +13,7 @@
         <div class="widget-measure widget-measure-main">
           <span class="widget-label"><%= message('widget.it-coverage.name') -%></span>
             <span class="nowrap">
-              <%= 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? -%>
             </span>
         </div>
@@ -68,7 +68,7 @@
                       <span class="nowrap">
                         <%= 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 => '-') %>
                       </span>
                   </div>
@@ -80,7 +80,7 @@
                       <span class="nowrap">
                         <%= 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)) %>
                       </span>
                   </div>
                 <% end %>
@@ -91,7 +91,7 @@
                       <span class="nowrap">
                         <%= 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)) %>
                       </span>
                   </div>
                 <% end %>
         <div class="widget-measure widget-measure-main">
           <span class="widget-label"><%= message('widget.overall-coverage.name') -%></span>
             <span class="nowrap">
-              <%= 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? -%>
             </span>
         </div>
                       <span class="nowrap">
                         <%= 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? -%>
                       </span>
                       <span class="nowrap">
                         <%= 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? -%>
                       </span>
                   </div>
                       <span class="nowrap">
                         <%= 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? -%>
                       </span>
                   </div>