aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/hbs/coding-rules/coding-rules-detail-quality-profile.hbs
blob: b1633fcfaa53c65f93a445a55f1daa21733a2d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<table class="width100">
  <tbody>
  <tr>
    <td class="coding-rules-detail-quality-profile-name">
      {{name}}
      {{#if parent}}
        <div class="coding-rules-detail-quality-profile-inheritance">
          <i class="icon-inheritance"></i> {{parent.name}}
        </div>
      {{/if}}
    </td>

    <td class="coding-rules-detail-quality-profile-severity">
      {{severityIcon severity}} {{t "severity" severity}}
      {{#if parent}}{{#notEq severity parent.severity}}
        <div class="coding-rules-detail-quality-profile-inheritance">
          {{t 'coding_rules.original'}} {{severityIcon parent.severity}}{{t 'severity' parent.severity}}
        </div>
      {{/notEq}}{{/if}}
    </td>

    <td class="coding-rules-detail-quality-profile-parameters">
      {{#each parameters}}
        {{key}}: {{value}}
        {{#if ../parent}}{{#notEq value original}}
          <div class="coding-rules-detail-quality-profile-inheritance">
            {{t 'coding_rules.original'}} {{original}}
          </div>
        {{/notEq}}{{/if}}
      {{/each}}
    </td>

    <td class="coding-rules-detail-quality-profile-actions">
      <div class="button-group">
        <button class="coding-rules-detail-quality-profile-change">{{t 'change'}}</button>
        {{#if parent}}
          <button class="coding-rules-detail-quality-profile-revert button-red">
            {{t 'coding_rules.revert_to_parent_definition'}}
          </button>
        {{/if}}
        <button class="coding-rules-detail-quality-profile-deactivate button-red">
          {{t 'coding_rules.deactivate'}}
        </button>
      </div>
    </td>
  </tr>

  {{#if note}}
    <tr>
      <td colspan="4" class="coding-rules-detail-quality-profile-note">{{{note.html}}}</td>
    </tr>
  {{/if}}
  </tbody>
</table>