diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-19 09:45:15 +0400 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2012-03-19 10:31:32 +0400 |
commit | b531cc874dd24859c3e0f5a6951721080734c3f0 (patch) | |
tree | 86126e385a1debe8f74fb185bd8d3660610f6c0f /plugins/sonar-core-plugin | |
parent | 2b75a64a9cc33875ec2ebc4384469e9b3af50b5d (diff) | |
download | sonarqube-b531cc874dd24859c3e0f5a6951721080734c3f0.tar.gz sonarqube-b531cc874dd24859c3e0f5a6951721080734c3f0.zip |
SONAR-2721 Display number of "projects" in "Size" widget
Thus add new metric - 'projects'.
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/size.html.erb | 4 |
1 files changed, 4 insertions, 0 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 e6366b32bc8..298a1314ab7 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 @@ -5,6 +5,7 @@ files=measure('files') packages=measure('packages') functions=measure('functions') + projects=measure('projects') if measure('lines') || ncloc files=measure('files') statements=measure('statements') @@ -43,6 +44,9 @@ <% if files && measure('classes') %> <p><%= format_measure(files, :suffix => message('widget.size.files.suffix'), :url => url_for_drilldown(files)) -%> <%= dashboard_configuration.selected_period? ? format_variation(files) : trend_icon(files) -%></p> <% end %> + <% if projects %> + <p><%= format_measure(projects, :suffix => message('widget.size.projects.suffix'), :url => url_for_drilldown(projects)) -%> <%= dashboard_configuration.selected_period? ? format_variation(projects) : trend_icon(projects) -%></p> + <% end %> </div> </td> <td width="10"> </td> |