]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4366 Fix display of passed quality gate
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 17 Mar 2014 13:50:13 +0000 (14:50 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Mon, 17 Mar 2014 13:50:13 +0000 (14:50 +0100)
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/alerts.html.erb

index 111522b1aee00b615c1d3f41653fbd3750cf1c4d..1f1f243340a52f8ef4a6439c428fbb4559781835 100644 (file)
@@ -3,7 +3,7 @@
         css_class = "widget color_#{m.alert_status}"
         if m.alert_status==Metric::TYPE_LEVEL_OK
           label = "<b>#{message('widget.alerts.no_alert')}</b>."
-        elif m.alert_status==Metric::TYPE_LEVEL_WARN
+        elsif m.alert_status==Metric::TYPE_LEVEL_WARN
      label = "<b>#{message('widget.alerts.warnings')}</b>#{h(m.alert_text)}."
         else
           label = "<b>#{message('widget.alerts.errors')}</b>#{h(m.alert_text)}."