aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/coding-rules/templates/rule/coding-rules-rule-parameters.hbs
blob: 0298c2aa33ee19661ad2927a2b3e4f510f8c797a (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
<h3 class="coding-rules-detail-title">{{t 'coding_rules.parameters'}}</h3>
<table class="coding-rules-detail-parameters">
  {{#each params}}
    <tr class="coding-rules-detail-parameter">
      <td class="coding-rules-detail-parameter-name">{{key}}</td>
      <td class="coding-rules-detail-parameter-description" data-key="{{key}}">
        <p>{{{htmlDesc}}}</p>
        {{#if ../../templateKey}}
          <div class="note spacer-top">
            {{#if defaultValue }}
              <span class="coding-rules-detail-parameter-value">{{defaultValue}}</span>
            {{else}}
              {{t 'coding_rules.parameter.empty'}}
            {{/if}}
          </div>
        {{else}}
          {{#if defaultValue}}
            <div class="note spacer-top">
              {{t 'coding_rules.parameters.default_value'}}<br>
              <span class="coding-rules-detail-parameter-value">{{defaultValue}}</span>
            </div>
          {{/if}}
        {{/if}}
      </td>
    </tr>
  {{/each}}
</table>