aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs')
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs38
1 files changed, 22 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs
index 8aee69dafff..32f822b85ff 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs
+++ b/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-issues.hbs
@@ -1,21 +1,27 @@
<div class="coding-rule-section-separator"></div>
-<h3 class="coding-rules-detail-title">
- {{t 'coding_rules.issues'}} ({{total}})
-</h3>
+{{#if loading}}
+ <h3 class="coding-rules-detail-title">
+ {{t 'coding_rules.issues'}} <i class="spinner spacer-left"/>
+ </h3>
+{{else}}
+ <h3 class="coding-rules-detail-title">
+ {{t 'coding_rules.issues'}} (<a href="{{totalIssuesUrl}}">{{total}}</a>)
+ </h3>
-{{#notEmpty projects}}
- <table class="coding-rules-detail-list coding-rules-most-violated-projects">
- <tr>
- <td class="coding-rules-detail-list-name" colspan="2">{{t 'coding_rules.most_violating_projects'}}</td>
- </tr>
- {{#each projects}}
+ {{#notEmpty projects}}
+ <table class="coding-rules-detail-list coding-rules-most-violated-projects">
<tr>
- <td class="coding-rules-detail-list-name">{{name}}</td>
- <td class="coding-rules-detail-list-parameters">
- <a href="{{issuesUrl}}" target="_blank">{{count}}</a>
- </td>
+ <td class="coding-rules-detail-list-name" colspan="2">{{t 'coding_rules.most_violating_projects'}}</td>
</tr>
- {{/each}}
- </table>
-{{/notEmpty}}
+ {{#each projects}}
+ <tr>
+ <td class="coding-rules-detail-list-name">{{name}}</td>
+ <td class="coding-rules-detail-list-parameters">
+ <a href="{{issuesUrl}}" target="_blank">{{count}}</a>
+ </td>
+ </tr>
+ {{/each}}
+ </table>
+ {{/notEmpty}}
+{{/if}}