]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4346 Display public_documented_api_density even if it is 0%
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 12 Aug 2013 12:02:49 +0000 (14:02 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 12 Aug 2013 12:10:37 +0000 (14:10 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/documentation_comments_widget.html.erb

index d1a2e6cf99b3099ef0af3a854a7e99aa20b95970..4c7c2c98203f6b34b6f53aef4d177586daf9c973 100644 (file)
@@ -15,7 +15,7 @@
           <p class="title"><%= message('widget.documentation_comments.documentation') -%></p>
           <p>
             <%
-            if public_documented_api_density && public_documented_api_density.value>0
+            if public_documented_api_density
             %>
             <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') -%>