]> source.dussan.org Git - sonarqube.git/blob
09447f2c00e10b6d66b540df1c0729f5ec429040
[sonarqube.git] /
1 <script id="coding-rules-detail-template" type="text/x-handlebars-template">
2   <h3 class="coding-rules-detail-header">{{name}}</h3>
3
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>
8     </li>
9     {{#notEq status 'READY'}}
10       <li class="coding-rules-detail-property">
11         <span class="coding-rules-detail-status">{{status}}</span>
12       </li>
13     {{/notEq}}
14     <li class="coding-rules-detail-property coding-rules-detail-tag-list">
15       <i class="icon-tags"></i>
16       {{join tags ', '}}
17       <a class="link-action coding-rules-detail-tags-change">{{t 'change'}}</a>
18     </li>
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>
22     </li>
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>
26   </ul>
27
28   <div class="coding-rules-detail-description rule-desc">{{{description}}}</div>
29
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>
34     </div>
35
36     <div id="coding-rules-detail-extend-description-form" class="admin">
37       <table class="width100 table">
38         <tbody>
39         <tr>
40           <td class="width100" colspan="2">
41             <textarea id="coding-rules-detail-extend-description-text" rows="4" style="width: 100%;">{{extraRaw}}</textarea>
42           </td>
43         </tr>
44         <tr>
45           <td>
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>
48           </td>
49           <td class="right">
50             <%= render :partial => 'markdown/tips' -%>
51           </td>
52         </tr>
53         </tbody>
54       </table>
55     </div>
56
57     <div id="coding-rules-detail-extend-description-spinner">
58       <i class="spinner"></i>
59     </div>
60   </div>
61
62
63   {{#if parameters}}
64     <h3 class="coding-rules-detail-title">{{t 'coding_rules.parameters'}}</h3>
65     <ul class="coding-rules-detail-parameters">
66       {{#each 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">
70             {{description}}
71
72             {{#if default}}
73               <div>{{t 'coding_rules.parameters.default_value'}} {{default}}</div>
74             {{/if}}
75           </div>
76         </li>
77       {{/each}}
78     </ul>
79   {{/if}}
80
81
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>
85   </div>
86   <div id="coding-rules-detail-quality-profiles"></div>
87 </script>