]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "fix SONAR-6203 Manual Metrics of type Level and Text can't be displayed using...
authorStas Vilchik <vilchiks@gmail.com>
Thu, 27 Aug 2015 16:34:58 +0000 (18:34 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 27 Aug 2015 16:34:58 +0000 (18:34 +0200)
This reverts commit bc14bd9bdfa9c983a0dc21d6e2b2d0d9a3f487cd.

server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index a096f806bfa8e7fc4998bb372e2096d157833662..4fc10646ce1346dd4eae38b9c870479a78a0d49c 100644 (file)
@@ -277,7 +277,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=message("level.#{m.formatted_value}")
+        html="<i class=\"icon-alert-#{m.alert_status.downcase}\"></i>" unless m.alert_status.blank?
       else
         html=m.formatted_value
       end
index 8931869679c614141f83a1f1ab3fedee3587ff17..58d6c50ea0087022c31c6221f7f74c796cb32258 100644 (file)
@@ -393,18 +393,6 @@ qualifiers.create.DEV=Create Developer
 qualifiers.update.VW=Update View
 qualifiers.update.DEV=Update Developer
 
-#------------------------------------------------------------------------------
-#
-# LEVELS
-#
-#------------------------------------------------------------------------------
-
-level.OK=Ok
-level.WARN=Warning
-level.ERROR=Error
-
-
-
 #------------------------------------------------------------------------------
 #
 # PROJECT LINKS