From 16b96d13932a7ed914dd239645766247f9866635 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 21 Mar 2014 13:17:13 +0600 Subject: [PATCH] SONAR-5007 Improve coding rule details display --- .../src/main/webapp/coffee/coding-rules/mockjax.coffee | 4 +++- sonar-server/src/main/webapp/less/coding-rules.less | 5 +---- .../webapp/templates/coding-rules/coding-rules-detail.hbs | 7 +++++-- .../coding-rules-quality-profile-activation.hbs | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee b/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee index eb78a3cfda3..a42a3afe486 100644 --- a/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee +++ b/sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee @@ -68,7 +68,7 @@ define ['jquery.mockjax'], -> 'severity.INFO': 'Info' 'coding_rules.activate': 'Activate' - 'coding_rules.activate_quality_profile': 'Activate Quality Profile' + 'coding_rules.activate_in_quality_profile': 'Activate in Quality Profile' 'coding_rules.add_note': 'Add Note' 'coding_rules.available_since': 'Available Since' 'coding_rules.bulk_change': 'Bulk Change' @@ -168,6 +168,8 @@ define ['jquery.mockjax'], -> fCreationDate: 'Oct 15, 2013' status: 'DEPRECATED' repository: 'squid' + characteristic: 'Reliability' + subcharacteristic: 'Data related reliability' key: 'S1190' parameters: [ { key: 'someParameter', type: 'INT', default: 4, description: 'Some parameter description' } diff --git a/sonar-server/src/main/webapp/less/coding-rules.less b/sonar-server/src/main/webapp/less/coding-rules.less index 9669c34aceb..389d28309ca 100644 --- a/sonar-server/src/main/webapp/less/coding-rules.less +++ b/sonar-server/src/main/webapp/less/coding-rules.less @@ -42,6 +42,7 @@ .coding-rules-detail-property { display: inline-block; vertical-align: middle; + margin-right: 2 * @navigatorPadding; font-size: @smallFontSize; height: 22px; line-height: 22px; @@ -49,10 +50,6 @@ .select2-search-field { line-height: 1; } } -.coding-rules-detail-property + .coding-rules-detail-property { - margin-left: 2 * @navigatorPadding; -} - .coding-rules-detail-tag + .coding-rules-detail-tag { margin-left: @navigatorPadding; } diff --git a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-detail.hbs b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-detail.hbs index 9a047d15023..4c424f1bd05 100644 --- a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-detail.hbs +++ b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-detail.hbs @@ -19,6 +19,7 @@ {{t 'done'}} +
  • {{characteristic}} > {{subcharacteristic}}
  • {{t 'coding_rules.available_since'}} {{fCreationDate}}
  • {{t 'coding_rules.repository'}} {{repository}}
  • {{t 'coding_rules.key'}} {{key}}
  • @@ -28,8 +29,10 @@
    - {{#if extra}}
    {{{extra}}}
    {{/if}} - {{t 'coding_rules.extend_description'}} + {{#if extra}}
    {{{extra}}}
    {{/if}} +
    + +
    diff --git a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-quality-profile-activation.hbs b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-quality-profile-activation.hbs index e1b322ebcd2..0360cab6f3b 100644 --- a/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-quality-profile-activation.hbs +++ b/sonar-server/src/main/webapp/templates/coding-rules/coding-rules-quality-profile-activation.hbs @@ -1,6 +1,6 @@