diff options
Diffstat (limited to 'sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs')
-rw-r--r-- | sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs new file mode 100644 index 00000000000..4b36a41182b --- /dev/null +++ b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs @@ -0,0 +1,151 @@ +{{#if contextQualityProfile}} + <div class="coding-rules-detail-context-actions"> + <table class="width100"> + <tbody> + <tr> + <td> + <span class="coding-rules-detail-context-actions-quality-profile">{{contextQualityProfileName}}</span> + {{#if qualityProfile}} + {{#with qualityProfile}} + <span class="coding-rules-detail-context-actions-item"> + {{severityIcon severity}} {{t "severity" severity}} + </span> + + {{#each parameters}} + <span class="coding-rules-detail-context-actions-item"> + <span class="limited">{{key}}</span><span class="limited">:</span> + <span class="limited">{{value}}</span> + </span> + {{/each}} + + {{#if note}} + <span class="coding-rules-detail-context-actions-item"> + <span class="limited limited-big">{{{note.html}}}</span> + </span> + {{/if}} + {{/with}} + {{/if}} + </td> + + <td class="coding-rules-detail-quality-profile-actions"> + <div class="button-group"> + {{#if qualityProfile}} + <button class="coding-rules-detail-quality-profile-update">{{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> + {{else}} + <button class="coding-rules-detail-quality-profile-activate"> + {{t 'coding_rules.activate'}} + </button> + {{/if}} + </div> + </td> + + </tr> + </tbody> + </table> + </div> +{{/if}} + +<h3 class="coding-rules-detail-header">{{name}}</h3> + +<ul class="coding-rules-detail-properties"> + <li class="coding-rules-detail-property">{{severityIcon severity}} {{t "severity" severity}}</li> + <li class="coding-rules-detail-property"> + <span class="coding-rules-detail-status">{{language}}</span> + </li> + {{#notEq status 'READY'}} + <li class="coding-rules-detail-property"> + <span class="coding-rules-detail-status">{{status}}</span> + </li> + {{/notEq}} + <li class="coding-rules-detail-property coding-rules-detail-tag-list coding-rules-detail-tags-change"> + <i class="icon-tags"></i> + <span>{{join tags ', '}}</span> + </li> + <li class="coding-rules-detail-property coding-rules-detail-tag-edit"> + <input class="coding-rules-detail-tag-input" type="text" value="{{join tags ','}}"> + + <div class="button-group"> + <button class="coding-rules-detail-tag-edit-done">{{t 'done'}}</button> + </div> + </li> + <li class="coding-rules-detail-property">{{characteristic}} > {{subcharacteristic}}</li> + <li class="coding-rules-detail-property">{{t 'coding_rules.available_since'}} {{fCreationDate}}</li> + <li class="coding-rules-detail-property">{{t 'coding_rules.repository'}} {{repositoryName}} ({{repositoryKey}})</li> + <li class="coding-rules-detail-property">{{t 'coding_rules.key'}} {{key}}</li> +</ul> + +<div class="coding-rules-detail-description rule-desc">{{{description}}}</div> + +<div class="coding-rules-detail-description coding-rules-detail-description-extra"> + <div id="coding-rules-detail-description-extra"> + {{#if extra}} + <div class="rule-desc marginbottom10">{{{extra}}}</div>{{/if}} + <div class="button-group"> + <button id="coding-rules-detail-extend-description">{{t 'coding_rules.extend_description'}}</button> + </div> + </div> + + <div id="coding-rules-detail-extend-description-form" class="admin"> + <table class="width100 table"> + <tbody> + <tr> + <td class="width100" colspan="2"> + <textarea id="coding-rules-detail-extend-description-text" rows="4" + style="width: 100%;">{{extraRaw}}</textarea> + </td> + </tr> + <tr> + <td> + <button id="coding-rules-detail-extend-description-submit">{{t 'coding_rules.extend_description'}}</button> + <a id="coding-rules-detail-extend-description-cancel" class="action">{{t 'cancel'}}</a> + </td> + <td class="right"> + {{> '_markdown-tips' }} + </td> + </tr> + </tbody> + </table> + </div> + + <div id="coding-rules-detail-extend-description-spinner"> + <i class="spinner"></i> + </div> +</div> + + +{{#if parameters}} + <h3 class="coding-rules-detail-title">{{t 'coding_rules.parameters'}}</h3> + <ul class="coding-rules-detail-parameters"> + {{#each parameters}} + <li class="coding-rules-detail-parameter"> + <h3 class="coding-rules-detail-parameter-name">{{key}}</h3> + + <div class="coding-rules-detail-parameter-description"> + {{description}} + + {{#if default}} + <div>{{t 'coding_rules.parameters.default_value'}} {{default}}</div> + {{/if}} + </div> + </li> + {{/each}} + </ul> +{{/if}} + + +<div class="coding-rules-detail-quality-profiles-section"> + <h3 class="coding-rules-detail-title">{{t 'coding_rules.quality_profiles'}}</h3> + + <div class="button-group coding-rules-detail-quality-profiles-activation"> + <button id="coding-rules-quality-profile-activate">{{t 'coding_rules.activate_in_quality_profile'}}</button> + </div> + <div id="coding-rules-detail-quality-profiles"></div> +</div>
\ No newline at end of file |