diff options
author | David Gageot <david@gageot.net> | 2012-07-12 18:29:23 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-12 18:29:23 +0200 |
commit | a285f8f4e89158ab569914aac97383b1b0432029 (patch) | |
tree | 0a679167e4e481db37958e56226b5f421de72167 /plugins/sonar-core-plugin | |
parent | 8b1a57036400e89b695a2a70626b43d94ec20ac4 (diff) | |
download | sonarqube-a285f8f4e89158ab569914aac97383b1b0432029.tar.gz sonarqube-a285f8f4e89158ab569914aac97383b1b0432029.zip |
SONAR-3653 Weird branche coverage for new code
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb index 6f9c3e5a1a8..8bfd6197fb1 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/coverage.html.erb @@ -36,9 +36,9 @@ if new_lines_to_cover_measure new_lines=new_lines_to_cover_measure.variation(dashboard_configuration.period_index) if new_lines - new_coverage=measure('new_coverage') - new_line_coverage=measure('new_line_coverage') - new_branch_coverage=measure('new_branch_coverage') + new_coverage=measure('new_coverage') if variation_value('new_coverage') + new_line_coverage=measure('new_line_coverage') if variation_value('new_line_coverage') + new_branch_coverage=measure('new_branch_coverage') if variation_value('new_branch_coverage') %> <br/> <h3><%= message('widget.code_coverage.on_new_code') -%> </h3> <% if new_lines.to_i==0 %> @@ -46,17 +46,17 @@ <% 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', :default => '-') -%></a></span> + <span class="big"><a href="<%= url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index) -%>"><%= format_variation(new_coverage, :style => 'none') -%></a></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', :default => '-') -%><%= message('widget.code_coverage.line_coverage.suffix') -%></a> + <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> </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', :default => '-') -%><%= message('widget.code_coverage.branch_coverage.suffix') -%></a> + <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> </p> <% end |