From 4eee1b480d16bc61bb0d370f9ab70c6793eeb100 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Fri, 21 Feb 2014 10:18:45 +0100 Subject: [PATCH] SONAR-4799 Hide widget altogether if no measure can be displayed on selected period --- .../org/sonar/plugins/core/widgets/custom_measures.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb index 70095e0e1a0..f7039b6423e 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/custom_measures.html.erb @@ -6,7 +6,7 @@ measures << m if m end period = params[:period] - unless measures.empty? + unless measures.empty? || measures.none? {|measure| measure.visible?(period.to_i)} %> @@ -36,4 +36,4 @@
-<% end %> \ No newline at end of file +<% end %> -- 2.39.5