]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4264 When there is an alert on "new coverage" measure, the measure is not highl...
authorJulien Lancelot <julien.lancelot@gmail.com>
Fri, 12 Jul 2013 15:11:54 +0000 (17:11 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Fri, 12 Jul 2013 15:11:54 +0000 (17:11 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb

index 45c44464ad755c680aefd7c2427ed1e39e18d1d3..49c84541229970107fc6f3b2a731b104eff0d0b4 100644 (file)
             <% else %>
               <% if new_coverage %>
                 <p>
-                  <span class="big"><a href="<%= url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index) -%>"><%= format_variation(new_coverage, :style => 'none') -%></a></span>
+                  <span class="big"><%= format_measure(new_coverage, :suffix => '',
+                                                       :period => dashboard_configuration.period_index,
+                                                       :url => url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index)) %>
+                  </span>
                 </p>
               <% end %>
               <% if new_line_coverage %>
                 <p>
-                  <a href="<%= url_for_drilldown('new_uncovered_lines', :highlight => 'new_line_coverage', :period => dashboard_configuration.period_index) -%>"><%= format_variation(new_line_coverage, :style => 'none') -%><%= message('widget.code_coverage.line_coverage.suffix') -%></a>
+                  <%= format_measure(new_line_coverage, :suffix => message('widget.code_coverage.line_coverage.suffix'),
+                                     :period => dashboard_configuration.period_index,
+                                     :url => url_for_drilldown('new_uncovered_lines', :highlight => 'new_line_coverage', :period => dashboard_configuration.period_index),
+                                     :default => '-') %>
                 </p>
               <% end %>
               <% if new_branch_coverage %>
                 <p>
-                  <a href="<%= url_for_drilldown('new_uncovered_conditions', :highlight => 'new_branch_coverage', :period => dashboard_configuration.period_index) -%>"><%= format_variation(new_branch_coverage, :style => 'none') -%><%= message('widget.code_coverage.branch_coverage.suffix') -%></a>
+                  <%= format_measure(new_branch_coverage, :suffix => message('widget.code_coverage.branch_coverage.suffix'),
+                                     :period => dashboard_configuration.period_index,
+                                     :url => url_for_drilldown('new_uncovered_conditions', :highlight => 'new_branch_coverage', :period => dashboard_configuration.period_index),
+                                     :default => '-') %>
                 </p>
               <%
                  end