summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-08-27 12:28:05 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-08-27 13:50:11 +0200
commitbc14bd9bdfa9c983a0dc21d6e2b2d0d9a3f487cd (patch)
treee0eb6b51d2f4fc34db5abd804cd2a52e5af969a6 /server
parente81b5dbc4f725a6bfbd495f69c61d0e8510f9667 (diff)
downloadsonarqube-bc14bd9bdfa9c983a0dc21d6e2b2d0d9a3f487cd.tar.gz
sonarqube-bc14bd9bdfa9c983a0dc21d6e2b2d0d9a3f487cd.zip
fix SONAR-6203 Manual Metrics of type Level and Text can't be displayed using 'Custom Measures' widget
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
index 4fc10646ce1..a096f806bfa 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
@@ -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="<i class=\"icon-alert-#{m.alert_status.downcase}\"></i>" unless m.alert_status.blank?
+ html=message("level.#{m.formatted_value}")
else
html=m.formatted_value
end