aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-01-25 15:02:26 +0100
committerStas Vilchik <vilchiks@gmail.com>2017-01-26 12:31:01 +0100
commitb723f7d1f2fcc51e9cded0c2e33ea5a27b48f952 (patch)
tree48b56572acafc662647d23e5c3b069bdb191274c /server
parent5a1e9a1ed7cc48fc7e0e20ce3a82eadb337e7973 (diff)
downloadsonarqube-b723f7d1f2fcc51e9cded0c2e33ea5a27b48f952.tar.gz
sonarqube-b723f7d1f2fcc51e9cded0c2e33ea5a27b48f952.zip
SONAR-8202 Add links to quality profiles from rule description
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs
index 441eb2ed22f..929a1e6d454 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs
+++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs
@@ -1,5 +1,7 @@
<td class="coding-rules-detail-quality-profile-name">
- {{name}}
+ <a href="{{profileUrl key}}">
+ {{name}}
+ </a>
{{#if parent}}
<div class="coding-rules-detail-quality-profile-inheritance">
{{#eq inherit 'OVERRIDES'}}
@@ -8,7 +10,9 @@
{{#eq inherit 'INHERITED'}}
<i class="icon-inheritance" title="{{tp 'coding_rules.inherits' name parent.name}}"></i>
{{/eq}}
- {{parent.name}}
+ <a class="link-base-color" href="{{profileUrl parent.key}}">
+ {{parent.name}}
+ </a>
</div>
{{/if}}
</td>