aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-18 11:56:41 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-18 11:57:48 +0200
commitbbca51dd58c089f0db2e2a26e68ffe371b8d7e16 (patch)
tree2868d3a7904bcd956f862971fb3528dd9e9899b9 /plugins
parentc0e02eb542e173e8c9dadebc84808087576636de (diff)
downloadsonarqube-bbca51dd58c089f0db2e2a26e68ffe371b8d7e16.tar.gz
sonarqube-bbca51dd58c089f0db2e2a26e68ffe371b8d7e16.zip
SONAR-4346 Hide docu. API suffix when no measure
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb
index 1474c837d45..ad5c70d0efa 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb
@@ -13,8 +13,12 @@
<div class="dashbox">
<p class="title"><%= message('widget.documentation_comments.documentation') -%></p>
<p>
+ <%
+ if public_documented_api_density && public_documented_api_density.value>0
+ %>
<span class="big"><%= format_measure(public_documented_api_density, :url => url_for_drilldown(Metric::PUBLIC_UNDOCUMENTED_API, :highlight => Metric::PUBLIC_DOCUMENTED_API_DENSITY))%></span><%= message('widget.documentation_comments.docu_api.suffix') %>
<%= dashboard_configuration.selected_period? ? format_variation('public_documented_api_density') : trend_icon('public_documented_api_density') -%>
+ <% end %>
</p>
<p>
<%= format_measure(public_api,:url => url_for_drilldown(public_api), :suffix => message('widget.documentation_comments.public_api.suffix'))%>