]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5107 Update ruby helper in order to use new alert icons
authorStas Vilchik <vilchiks@gmail.com>
Mon, 3 Mar 2014 16:30:52 +0000 (17:30 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 3 Mar 2014 16:31:00 +0000 (17:31 +0100)
sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb

index df7fd1aa0494835b6c06bb32ac3cbed02dab2749..2a10cb09badfb9bc3290f24d0b8a07e5dcfffac7 100644 (file)
@@ -260,7 +260,7 @@ module ApplicationHelper
       if options[:period]
         html=m.format_numeric_value(m.variation(options[:period].to_i))
       elsif m.metric.val_type==Metric::VALUE_TYPE_LEVEL
-        html=image_tag("levels/#{m.data.downcase}.png") unless m.data.blank?
+        html="<i class=\"icon-alert-#{m.data.downcase}\"></i>" unless m.data.blank?
       else
         html=m.formatted_value
       end