1 <script id="coding-rules-detail-template" type="text/x-handlebars-template">
2 <h3 class="coding-rules-detail-header">{{name}}</h3>
4 <ul class="coding-rules-detail-properties">
5 <li class="coding-rules-detail-property">{{severityIcon severity}} {{t "severity" severity}}</li>
6 <li class="coding-rules-detail-property">
7 <span class="coding-rules-detail-status">{{language}}</span>
9 {{#notEq status 'READY'}}
10 <li class="coding-rules-detail-property">
11 <span class="coding-rules-detail-status">{{status}}</span>
14 <li class="coding-rules-detail-property coding-rules-detail-tag-list">
15 <i class="icon-tags"></i>
17 <a class="link-action coding-rules-detail-tags-change">{{t 'change'}}</a>
19 <li class="coding-rules-detail-property coding-rules-detail-tag-edit">
20 <input class="coding-rules-detail-tag-input" type="text" value="{{join tags ','}}">
21 <a class="link-action coding-rules-detail-tag-edit-done">{{t 'done'}}</a>
23 <li class="coding-rules-detail-property">{{t 'coding_rules.available_since'}} {{fCreationDate}}</li>
24 <li class="coding-rules-detail-property">{{t 'coding_rules.repository'}} {{repository}}</li>
25 <li class="coding-rules-detail-property">{{t 'coding_rules.key'}} {{key}}</li>
28 <div class="coding-rules-detail-description rule-desc">{{{description}}}</div>
30 <div class="coding-rules-detail-description coding-rules-detail-description-extra">
31 <div id="coding-rules-detail-description-extra">
32 {{#if extra}}<div class="rule-desc">{{{extra}}}</div>{{/if}}
33 <a class="link-action" id="coding-rules-detail-extend-description">{{t 'coding_rules.extend_description'}}</a>
36 <div id="coding-rules-detail-extend-description-form" class="admin">
37 <table class="width100 table">
40 <td class="width100" colspan="2">
41 <textarea id="coding-rules-detail-extend-description-text" rows="4" style="width: 100%;">{{extraRaw}}</textarea>
46 <button id="coding-rules-detail-extend-description-submit">{{t 'coding_rules.extend_description'}}</button>
47 <a id="coding-rules-detail-extend-description-cancel" class="action">{{t 'cancel'}}</a>
50 <%= render :partial => 'markdown/tips' -%>
57 <div id="coding-rules-detail-extend-description-spinner">
58 <i class="spinner"></i>
64 <h3 class="coding-rules-detail-title">{{t 'coding_rules.parameters'}}</h3>
65 <ul class="coding-rules-detail-parameters">
67 <li class="coding-rules-detail-parameter">
68 <h3 class="coding-rules-detail-parameter-name">{{key}}</h3>
69 <div class="coding-rules-detail-parameter-description">
73 <div>{{t 'coding_rules.parameters.default_value'}} {{default}}</div>
82 <h3 class="coding-rules-detail-title">{{t 'coding_rules.quality_profiles'}}</h3>
83 <div class="button-group coding-rules-detail-quality-profiles-activation">
84 <button id="coding-rules-quality-profile-activate">{{t 'coding_rules.activate_quality_profile'}}</button>
86 <div id="coding-rules-detail-quality-profiles"></div>