diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-05 18:37:03 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-04-05 18:37:03 +0200 |
commit | 8235e7b3c8c64095c7bae824f783d6ea3f1ab018 (patch) | |
tree | 4b0fec308d4dca370bf5557ce539a9e8327cced1 | |
parent | dedeee7c09f52d0b78302471de2660043ee5c27d (diff) | |
download | sonarqube-8235e7b3c8c64095c7bae824f783d6ea3f1ab018.tar.gz sonarqube-8235e7b3c8c64095c7bae824f783d6ea3f1ab018.zip |
SONAR-3396 The widget title should be "Lines" instead of "Lines of code" when the measure ncloc is not present
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb | 4 | ||||
-rw-r--r-- | plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties | 1 |
2 files changed, 4 insertions, 1 deletions
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 298a1314ab7..97061a5f0f3 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 @@ -14,8 +14,9 @@ <tr> <td valign="top" width="48%" nowrap> <div class="dashbox"> - <h3><%= message('widget.size.lines_of_code') -%></h3> + <% if ncloc %> + <h3><%= message('widget.size.lines_of_code') -%></h3> <p> <span class="big"><%= format_measure(ncloc, :suffix => '', :url => url_for_drilldown(ncloc)) -%></span> <%= dashboard_configuration.selected_period? ? format_variation(ncloc) : trend_icon(ncloc) -%> @@ -28,6 +29,7 @@ <% end %> <p><%= format_measure(lines, :suffix => message('widget.size.lines.suffix'), :url => url_for_drilldown(lines)) -%> <%= dashboard_configuration.selected_period? ? format_variation(lines) : trend_icon(lines) -%></p> <% else%> + <h3><%= message('widget.size.lines') -%></h3> <p><span class="big"><%= format_measure(lines, :suffix => '', :url => url_for_drilldown(lines)) -%> <%= trend_icon(lines) -%></span></p> <% end %> <% diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties index bb4cd1a46ca..1e8762acc4e 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -659,6 +659,7 @@ widget.rules.removed=Removed: widget.size.name=Size metrics widget.size.description=Reports general metrics on the size of the project. widget.size.lines_of_code=Lines of code +widget.size.lines=Lines widget.size.generated.suffix=\ generated widget.size.lines.suffix=\ lines widget.size.statements.suffix=\ statements |