]> source.dussan.org Git - sonarqube.git/commitdiff
merge 2.5-RC2: fix alignment of trend icons in the components page
authorSimon Brandhof <SimonBrandhof@imac2-sonarsource.local>
Tue, 11 Jan 2011 11:03:28 +0000 (12:03 +0100)
committerSimon Brandhof <SimonBrandhof@imac2-sonarsource.local>
Tue, 11 Jan 2011 11:03:28 +0000 (12:03 +0100)
sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index feff2e8e1ea6e51212ac651e4c9c2d517a578411..294710f54583456a33965919e0a140885a6ee556 100644 (file)
@@ -58,7 +58,7 @@ module ApplicationHelper
 
   # deprecated since 2.5. Use trend_icon() instead
   def tendency_icon(metric_or_measure, small=true, no_tendency_img=true)
-    return trend_icon(metric_or_measure, {:big => !small})
+    return trend_icon(metric_or_measure, {:big => !small, :empty => !no_tendency_img})
   end
 
   def boolean_icon(boolean_value, options={})