aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-16 18:53:23 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-16 18:53:23 +0100
commit78cc08630e2afbaaf221abe127411830360ed4f9 (patch)
tree16ccf19a8c8f97b0a4de20525a97c745ef3e36ad /plugins
parent92fe216b9d1dff61ce64f6dc88db497fa805e43b (diff)
downloadsonarqube-78cc08630e2afbaaf221abe127411830360ed4f9.tar.gz
sonarqube-78cc08630e2afbaaf221abe127411830360ed4f9.zip
Improve new coverage widget
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb
index 3e165313f01..c1aaf0efac9 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/code_coverage.html.erb
@@ -40,11 +40,13 @@
new_line_coverage=measure('new_line_coverage')
new_branch_coverage=measure('new_branch_coverage')
%> <br/>
- <h3>On new code:</h3>
- <% if new_lines.to_i>0 %>
+ <h3>On new code: </h3>
+ <% if new_lines.to_i==0 %>
+ <p>No new lines to cover</p>
+ <% else %>
<% if new_coverage %>
<p>
- <span class="big"><a href="<%= url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index) -%>"><%= new_coverage.format_numeric_value(variation_value(new_coverage))||'-' -%></a></span> coverage
+ <span class="big"><a href="<%= url_for_drilldown('new_coverage', :period => dashboard_configuration.period_index) -%>"><%= new_coverage.format_numeric_value(variation_value(new_coverage))||'-' -%></a></span>
</p>
<% end %>
<p>