]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5848 display "new_" measures in black
authorStas Vilchik <vilchiks@gmail.com>
Thu, 14 Apr 2016 08:28:51 +0000 (10:28 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 14 Apr 2016 08:40:14 +0000 (10:40 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/helpers/measures_helper.rb

index ac2d7e536de4d1b60719cac0a8af29dd9c49f2e1..6bc58c10ec49a765e353602f9817fad40f77fbf6 100644 (file)
@@ -120,20 +120,8 @@ module MeasuresHelper
     if m
       val=variation_value(m, :index => index)
       if val
-        formatted_val= m.format_numeric_value(val, :variation => false)
-        css_class='var'
-        if m.metric.qualitative?
-          factor=m.metric.direction * val
-          if factor>0
-            # better
-            css_class='varb'
-          elsif factor<0
-            # worst
-            css_class='varw'
-          end
-        end
-
-        html="<span class='#{css_class}'>#{formatted_val}</span>"
+        formatted_val = m.format_numeric_value(val, :variation => false)
+        html = "<span>#{formatted_val}</span>"
       end
     end
     html