From cfd3ce98d5c74dd182396b44755d237d9754a8ec Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 12 Aug 2013 14:02:49 +0200 Subject: [PATCH] SONAR-4346 Display public_documented_api_density even if it is 0% --- .../plugins/core/widgets/documentation_comments_widget.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -%> -- 2.39.5