diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-09 18:11:33 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-10 11:33:12 +0200 |
commit | 1719abc62d33568dfc1a1d8d90262062211c5f39 (patch) | |
tree | 136a38c1bf40d20603737791c3e9c646ed03aaef | |
parent | 60242a39a5260d73d31d88e11dd6bc7c6b0987c5 (diff) | |
download | sonarqube-1719abc62d33568dfc1a1d8d90262062211c5f39.tar.gz sonarqube-1719abc62d33568dfc1a1d8d90262062211c5f39.zip |
SONAR-8513 Show visual indicator that a rule is a template
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/controller.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/controller.js b/server/sonar-web/src/main/js/apps/coding-rules/controller.js index 8545fcfada6..8e4465bab0a 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/controller.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/controller.js @@ -26,7 +26,7 @@ import throwGlobalError from '../../app/utils/throwGlobalError'; export default Controller.extend({ pageSize: 200, - ruleFields: ['name', 'lang', 'langName', 'sysTags', 'tags', 'status', 'severity'], + ruleFields: ['name', 'lang', 'langName', 'sysTags', 'tags', 'status', 'severity', 'isTemplate'], _searchParameters() { const fields = this.ruleFields.slice(); diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs index 9996447d1bc..bc729a5054a 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs +++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/coding-rules-workspace-list-item.hbs @@ -17,6 +17,10 @@ <td> <div class="coding-rule-title"> <a class="js-rule link-no-underline" href="{{permalink}}">{{name}}</a> + {{#if isTemplate}} + <span class="outline-badge spacer-left" title="{{t 'coding_rules.rule_template.title'}}" + data-toggle="tooltip" data-placement="bottom">{{t 'coding_rules.rule_template'}}</span> + {{/if}} </div> </td> |