From: Fabrice Bellingard Date: Mon, 12 Aug 2013 12:02:49 +0000 (+0200) Subject: SONAR-4346 Display public_documented_api_density even if it is 0% X-Git-Tag: 3.7~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cfd3ce98d5c74dd182396b44755d237d9754a8ec;p=sonarqube.git SONAR-4346 Display public_documented_api_density even if it is 0% --- 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 d1a2e6cf99b..4c7c2c98203 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 @@ -15,7 +15,7 @@

<%= message('widget.documentation_comments.documentation') -%>

<% - if public_documented_api_density && public_documented_api_density.value>0 + if public_documented_api_density %> <%= format_measure(public_documented_api_density, :url => url_for_drilldown(Metric::PUBLIC_UNDOCUMENTED_API, :highlight => Metric::PUBLIC_DOCUMENTED_API_DENSITY))%><%= message('widget.documentation_comments.docu_api.suffix') %> <%= dashboard_configuration.selected_period? ? format_variation('public_documented_api_density') : trend_icon('public_documented_api_density') -%>