]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 Improve coding rule details display
authorStas Vilchik <vilchiks@gmail.com>
Fri, 21 Mar 2014 07:17:13 +0000 (13:17 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 21 Mar 2014 07:17:13 +0000 (13:17 +0600)
sonar-server/src/main/webapp/coffee/coding-rules/mockjax.coffee
sonar-server/src/main/webapp/less/coding-rules.less
sonar-server/src/main/webapp/templates/coding-rules/coding-rules-detail.hbs
sonar-server/src/main/webapp/templates/coding-rules/coding-rules-quality-profile-activation.hbs

index eb78a3cfda35cbeea7d8b9aefcfe76b922628ca3..a42a3afe4867258e84b1b3f0f7ad5ce7183be6a8 100644 (file)
@@ -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' }
index 9669c34aceb11221ad7571c47454b65ac3aea648..389d28309ca9b84e28e927b79a4b7d925542c673 100644 (file)
@@ -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;
   .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;
 }
index 9a047d1502316d6b2e1db943e1607ea115334ec8..4c424f1bd05aa9a6492e1c680a171653f628544a 100644 (file)
@@ -19,6 +19,7 @@
     <input class="coding-rules-detail-tag-input" type="text" value="{{join tags ','}}">
     <a class="link-action coding-rules-detail-tag-edit-done">{{t 'done'}}</a>
   </li>
+  <li class="coding-rules-detail-property">{{characteristic}}&nbsp;>&nbsp;{{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'}} {{repository}}</li>
   <li class="coding-rules-detail-property">{{t 'coding_rules.key'}} {{key}}</li>
 
 <div class="coding-rules-detail-description coding-rules-detail-description-extra">
   <div id="coding-rules-detail-description-extra">
-    {{#if extra}}<div class="rule-desc">{{{extra}}}</div>{{/if}}
-    <a class="link-action" id="coding-rules-detail-extend-description">{{t 'coding_rules.extend_description'}}</a>
+    {{#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">
index e1b322ebcd2ba047201dfaaab5067d22eee6f16b..0360cab6f3b01714301e619234e986cdb3626fb6 100644 (file)
@@ -1,6 +1,6 @@
 <form>
   <div class="modal-head">
-    <h2>{{t 'coding_rules.activate_quality_profile'}}</h2>
+    <h2>{{t 'coding_rules.activate_in_quality_profile'}}</h2>
   </div>
 
   <div class="modal-body">