diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/qualifierIcon.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/qualifierIcon.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/qualifierIcon.js b/server/sonar-web/src/main/js/helpers/handlebars/qualifierIcon.js new file mode 100644 index 00000000000..ff61c1bf790 --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/handlebars/qualifierIcon.js @@ -0,0 +1,7 @@ +import Handlebars from 'handlebars/runtime'; + +module.exports = function (qualifier) { + return new Handlebars.default.SafeString( + qualifier ? '<i class="icon-qualifier-' + qualifier.toLowerCase() + '"></i>' : '' + ); +}; |