aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js b/server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js
new file mode 100644
index 00000000000..135f557584c
--- /dev/null
+++ b/server/sonar-web/src/main/js/helpers/handlebars/severityChangelog.js
@@ -0,0 +1,7 @@
+import Handlebars from 'handlebars/runtime';
+
+module.exports = function (severity) {
+ var label = '<i class="icon-severity-' + severity.toLowerCase() + '"></i>&nbsp;' + window.t('severity', severity),
+ message = window.tp('quality_profiles.severity_set_to_x', label);
+ return new Handlebars.default.SafeString(message);
+};