From: Jean-Baptiste Lievremont Date: Fri, 21 Feb 2014 09:18:45 +0000 (+0100) Subject: SONAR-4799 Hide widget altogether if no measure can be displayed on selected period X-Git-Tag: 4.2~71 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4eee1b480d16bc61bb0d370f9ab70c6793eeb100;p=sonarqube.git SONAR-4799 Hide widget altogether if no measure can be displayed on selected period --- 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 %>