]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8202 Add links to quality profiles from rule description
authorStas Vilchik <vilchiks@gmail.com>
Wed, 25 Jan 2017 14:02:26 +0000 (15:02 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 26 Jan 2017 11:31:01 +0000 (12:31 +0100)
server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-profile.hbs

index 441eb2ed22f8c3e7b71731e500e15064f2874901..929a1e6d4540972c0ed554b09fc316cd906de009 100644 (file)
@@ -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>