]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5574 Improve edition of custom rules
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 13:52:45 +0000 (15:52 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 14:34:06 +0000 (16:34 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-custom-rule-creation-view.coffee
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-quality-profile-activation-view.coffee
server/sonar-web/src/main/hbs/coding-rules/coding-rules-custom-rule-creation.hbs
server/sonar-web/src/main/less/coding-rules.less

index 951a224414ebf150e61d21e779922643919eb241..810f4ccfd898ddc84a5c060ab8fb0719e4d76ed2 100644 (file)
@@ -7,7 +7,7 @@ define [
 ) ->
 
   class CodingRulesCustomRuleCreationView extends Marionette.ItemView
-    className: 'modal'
+    className: 'modal coding-rules-modal'
     template: Templates['coding-rules-custom-rule-creation']
 
 
index fc14043896e709f4d71b41dbe9fddae9ce60d05e..785075e167faea98c105ac71c349d5c4077adced 100644 (file)
@@ -7,7 +7,7 @@ define [
 ) ->
 
   class CodingRulesQualityProfileActivationView extends Marionette.ItemView
-    className: 'modal'
+    className: 'modal coding-rules-modal'
     template: Templates['coding-rules-quality-profile-activation']
 
 
index e9db47f05eb1209f96d898a186c1474c6452227b..9f62f2113441120ffab486ec273b7f5ebe245ef3 100644 (file)
@@ -23,7 +23,7 @@
         <th><h3>{{t 'key'}}{{#unless change}} <em class="mandatory">*</em>{{/unless}}</h3></th>
         <td>
           {{#if change}}
-            {{key}}
+            <span class="coding-rules-detail-custom-rule-key" title="{{key}}">{{key}}</span>
           {{else}}
             <input type="text" name="key" id="coding-rules-custom-rule-creation-key"
               class="coding-rules-name-key" value="{{internalKey}}"/>
index 31488bd252b4f4d8fa4b5a73257dab9e72ab78a5..02220f1eaab1614fca89bb008a53d4513fa9c5e8 100644 (file)
@@ -390,6 +390,20 @@ textarea.coding-rules-markdown-description {
   font-weight: bold;
 }
 
+.coding-rules-detail-custom-rule-key {
+  display:inline-block;
+  max-width: 460px;
+  whitespace: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+
+.coding-rules-modal .property {
+  input, textarea {
+    width: 100%;
+  }
+}
+
 .coding-rules-subcharacteristic-more {
   display: none;
 }