diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-10-03 14:17:43 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-03 15:25:48 +0200 |
commit | 0ad7bd7fc006a8f48000fa480002c9418e7f65c0 (patch) | |
tree | 3754548be9bb526bfc9416f6c410ba64046fc60f /plugins/sonar-core-plugin | |
parent | acdeea06879c3a16905238af445bc79c94b4e8a7 (diff) | |
download | sonarqube-0ad7bd7fc006a8f48000fa480002c9418e7f65c0.tar.gz sonarqube-0ad7bd7fc006a8f48000fa480002c9418e7f65c0.zip |
SONAR-5535 refine layout of size widget (generated_sloc under sloc)
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java | 2 | ||||
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb | 23 |
2 files changed, 13 insertions, 12 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java index b3330c7833f..5f97c30c272 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java @@ -22,6 +22,6 @@ package org.sonar.plugins.core.widgets; public class SizeWidget extends CoreWidget { public SizeWidget() { - super("size", "Size metrics", "/org/sonar/plugins/core/widgets/size.html.erb"); + super("size", "Size metrics", "/Users/jean-baptiste.lievremont/Dev/Source/sonar/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb"); } } diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb index cda33b0714f..0a28f86c05c 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb @@ -29,6 +29,13 @@ <%= dashboard_configuration.selected_period? ? format_variation(ncloc) : trend_icon(ncloc) -%> </span> </p> + <% if generated_ncloc && generated_ncloc.value>0 %> + <p class="widget-label nowrap" style="margin-bottom: 7px"> + <%= message('including_abbreviated') -%> + <%= format_measure(generated_ncloc, :url => url_for_drilldown(generated_ncloc)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_ncloc) : trend_icon(generated_ncloc) -%> + <%= message('metric.generated_ncloc.name.suffix') -%> + </p> + <% end %> <% if ncloc_language_dist_hash %> <% if ncloc_language_dist_hash.size > 1 %> @@ -105,16 +112,6 @@ </p> <% end %> - <% if ncloc && generated_ncloc && generated_ncloc.value > 0 %> - <p> - <%= format_measure(generated_ncloc, :url => url_for_drilldown(generated_ncloc)) -%> - <span class="nowrap"> - <%= dashboard_configuration.selected_period? ? format_variation(generated_ncloc) : trend_icon(generated_ncloc) %> - <span class="widget-label"><%= message('metric.generated_ncloc.name.suffix') -%></span> - </span> - </p> - <% end %> - <p class="widget-measure"> <span class="widget-label"><%= message('metric.lines.name') -%></span> <span class="nowrap"> @@ -124,7 +121,11 @@ </p> <% if generated_lines && generated_lines.value>0 %> - <p>incl. <%= format_measure(generated_lines, :suffix => ' ' + message('metric.generated_lines.name.suffix'), :url => url_for_drilldown(generated_lines)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_lines) : trend_icon(generated_lines) -%></p> + <p class="widget-label nowrap" style="margin-bottom: 7px"> + <%= message('including_abbreviated') -%> + <%= format_measure(generated_lines, :url => url_for_drilldown(generated_lines)) -%> <%= dashboard_configuration.selected_period? ? format_variation(generated_lines) : trend_icon(generated_lines) -%> + <%= message('metric.generated_lines.name.suffix') -%> + </p> <% end %> <% if projects %> |