]> source.dussan.org Git - sonarqube.git/commitdiff
Don't show documentation section when there is no metric
authorJulien HENRY <julien.henry@sonarsource.com>
Fri, 19 Jul 2013 06:44:36 +0000 (08:44 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Fri, 19 Jul 2013 06:45:19 +0000 (08:45 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb

index ad5c70d0efa3e52e1b21a77b2f08b4431fccda57..d1a2e6cf99b3099ef0af3a854a7e99aa20b95970 100644 (file)
@@ -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>