]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4346 Hide docu. API suffix when no measure
authorJulien HENRY <julien.henry@sonarsource.com>
Thu, 18 Jul 2013 09:56:41 +0000 (11:56 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Thu, 18 Jul 2013 09:57:48 +0000 (11:57 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb

index 1474c837d456369e30225f6ab57c0385a93496e0..ad5c70d0efa3e52e1b21a77b2f08b4431fccda57 100644 (file)
         <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'))%>