1 <script id="coding-rules-detail-quality-profile-template" type="text/x-handlebars-template">
2 <div class="coding-rules-detail-quality-profile-name">{{name}}</div>
5 <div class="coding-rules-detail-quality-profile-inheritance">
6 <i class="icon-inheritance"></i> {{t 'coding_rules.inherits'}} <strong>{{parent.name}}</strong>
10 <ul class="coding-rules-detail-parameters coding-rules-detail-quality-profile-parameters">
11 <li class="coding-rules-detail-parameter">
12 <h3 class="coding-rules-detail-parameter-name">{{t 'severity'}}</h3>
13 <div class="coding-rules-detail-parameter-description">
14 <select class="coding-rules-detail-quality-profile-severity">
16 <option value="{{this}}">{{t 'severity' this}}</option>
20 {{#notEq severity parent.severity}}
21 {{t 'coding_rules.original'}} {{severityIcon parent.severity}}{{t 'severity' parent.severity}}
27 <li class="coding-rules-detail-parameter">
28 <h3 class="coding-rules-detail-parameter-name">{{key}}</h3>
29 <div class="coding-rules-detail-parameter-description">
30 <input type="text" value="{{value}}">
32 {{#notEq value original}}
33 {{t 'coding_rules.original'}} {{original}}
41 <div class="coding-rules-detail-quality-profile-note">
43 <blockquote class="rule-desc">
45 <b>{{note.username}}</b> ({{note.fCreationDate}}) |
46 <a class="coding-rules-detail-quality-profile-note-edit link-action">{{t 'edit'}}</a>
47 <a class="coding-rules-detail-quality-profile-note-delete link-action">{{t 'delete'}}</a>
52 <a class="coding-rules-detail-quality-profile-note-add link-action">{{t 'coding_rules.add_note'}}</a>
56 <div class="coding-rules-detail-quality-profile-note-form admin">
57 <table class="width100 table">
60 <td class="width100" colspan="2">
61 <textarea class="coding-rules-detail-quality-profile-note-text" rows="4" style="width: 100%;">{{#if note}}{{note.raw}}{{/if}}</textarea>
66 <button class="coding-rules-detail-quality-profile-note-submit">
67 {{#if note}}{{t 'update'}}{{else}}{{t 'coding_rules.add_note'}}{{/if}}
69 <a class="coding-rules-detail-quality-profile-note-cancel action">{{t 'cancel'}}</a>
72 <%= render :partial => 'markdown/tips' -%>
79 <div class="button-group coding-rules-detail-quality-profile-actions">
80 <button>{{t 'update'}}</button>
82 <button class="button-red">{{t 'coding_rules.revert_to_parent_definition'}}</button>
84 <button class="button-red">{{t 'coding_rules.deactivate_quality_profile'}}</button>