]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5460 Add some space, make param description togglable
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 23 Jul 2014 15:28:31 +0000 (17:28 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 23 Jul 2014 15:28:47 +0000 (17:28 +0200)
server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
server/sonar-web/src/main/less/coding-rules.less

index 6bb84a5be26fedc07a217ba4717898a9f55686ba..cb31e14f6720f67832c301f7fd536405ca3f6b44 100644 (file)
@@ -75,6 +75,7 @@ define [
       'click @ui.deleteCustomRule': 'deleteRule'
 
       'click .coding-rules-subcharacteristic': 'toggleDebtInfo'
+      'click .coding-rules-detail-parameter-name': 'toggleParameterDescription'
 
     initialize: (options) ->
       super options
@@ -177,6 +178,10 @@ define [
       false
 
 
+    toggleParameterDescription: (e) ->
+      jQuery(e.currentTarget).next('.coding-rules-detail-parameter-description').toggle();
+
+
     hideContext: ->
       @contextRegion.reset()
       @$(@contextRegion.el).hide()
index 34f299fad55923941d008509a19519dab43d10a8..060f0f1e1e1ec270057a8f591c0fbc11162ab6d4 100644 (file)
   display: block;
   margin-left: 2 * @navigatorPadding;
   font-weight: bold;
+  cursor: pointer;
 }
 
 .coding-rules-detail-parameter-description {
   .box-sizing(border-box);
 
   .subtitle {
+    margin-top: @navigatorPadding;
     font-size: @baseFontSize;
   }
 }