]> source.dussan.org Git - sonarqube.git/commitdiff
Fix display of debt characteristic in the issue rule modal
authorStas Vilchik <vilchiks@gmail.com>
Mon, 22 Dec 2014 12:23:50 +0000 (13:23 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 22 Dec 2014 12:23:50 +0000 (13:23 +0100)
server/sonar-web/src/main/coffee/issue/views/rule-overlay.coffee
server/sonar-web/src/main/hbs/issue/issue-rule.hbs
server/sonar-web/src/main/hbs/issues/issues-help.hbs

index 7d7d8aad88de68a481a243429802be35f3bcecff..78415e338e02d15f87376b73a9c5ba9c49759867 100644 (file)
@@ -13,3 +13,4 @@ define [
     serializeData: ->
       _.extend super,
         permalink: "#{baseUrl}/coding_rules#rule_key=#{@model.get('key')}"
+        allTags: _.union @model.get('sysTags'), @model.get('tags')
index 4f4e0bdc932bf2ccbd7449bfe4fa903f22cd76a6..cee912e959437d713f5a321b5631b9dac37c9814 100644 (file)
@@ -7,6 +7,17 @@
 
 <span class="subtitle">{{key}}</span>
 
+<ul class="coding-rules-detail-properties">
+  <li class="coding-rules-detail-property coding-rules-detail-tag-list">
+    <i class="icon-tags"></i>
+    <span>{{#if allTags}}{{join allTags ', '}}{{else}}{{t 'coding_rules.no_tags'}}{{/if}}</span>
+  </li>
+  {{#if debtCharName}}
+    <li class="coding-rules-detail-property">{{debtCharName}}{{#if debtSubCharName}} > {{debtSubCharName}}{{/if}}</li>
+  {{/if}}
+</ul>
+
+
 <div class="coding-rules-detail-description rule-desc markdown">{{{htmlDesc}}}</div>
 
 <div class="modal-foot">
index 4745f8882b475c421f63b64d3bff7e776ec286ec..75fae5d8ee8a31742def8d66ed7bd4546dffd141 100644 (file)
@@ -14,7 +14,7 @@
   <ul>
     <li><span class="shortcut-button">c</span> &nbsp;&nbsp; to confirm/unconfirm</li>
     <li><span class="shortcut-button">r</span> &nbsp;&nbsp; to resolve/reopen</li>
-    <li><span class="shortcut-button">f</span> &nbsp;&nbsp; to mark as false-positive</li>
+    <li><span class="shortcut-button">f</span> &nbsp;&nbsp; to mark as false positive</li>
     <li><span class="shortcut-button">a</span> &nbsp;&nbsp; to assign</li>
     <li><span class="shortcut-button">m</span> &nbsp;&nbsp; to assign to the current user</li>
     <li><span class="shortcut-button">p</span> &nbsp;&nbsp; to plan</li>