aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2013-07-19 08:44:36 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2013-07-19 08:45:19 +0200
commitb6fbcf057a478be1f96e5ae76e31a695fe63d34f (patch)
tree60bade462296626ce2c1fa6ecf6500a7cc15bfd3 /plugins
parentc9e2a8acfc20e39e8428927c935d821a92aa3b4f (diff)
downloadsonarqube-b6fbcf057a478be1f96e5ae76e31a695fe63d34f.tar.gz
sonarqube-b6fbcf057a478be1f96e5ae76e31a695fe63d34f.zip
Don't show documentation section when there is no metric
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb2
1 files changed, 2 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 ad5c70d0efa..d1a2e6cf99b 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
@@ -9,6 +9,7 @@
<table width="100%">
<tbody>
<tr>
+ <% if public_documented_api_density || public_api || public_undocumented_api %>
<td valign="top" width="50%">
<div class="dashbox">
<p class="title"><%= message('widget.documentation_comments.documentation') -%></p>
@@ -30,6 +31,7 @@
</p>
</div>
</td>
+ <% end %>
<td valign="top" width="50%">
<div class="dashbox">
<p class="title"><%= message('widget.documentation_comments.comments') -%></p>