From c9bb2e781dd5efa1706ff9166af167a9519fabe9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 23 Jul 2014 17:28:31 +0200 Subject: SONAR-5460 Add some space, make param description togglable --- .../main/coffee/coding-rules/views/coding-rules-detail-view.coffee | 5 +++++ server/sonar-web/src/main/less/coding-rules.less | 2 ++ 2 files changed, 7 insertions(+) (limited to 'server/sonar-web') diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee index 6bb84a5be26..cb31e14f672 100644 --- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee +++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee @@ -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() diff --git a/server/sonar-web/src/main/less/coding-rules.less b/server/sonar-web/src/main/less/coding-rules.less index 34f299fad55..060f0f1e1e1 100644 --- a/server/sonar-web/src/main/less/coding-rules.less +++ b/server/sonar-web/src/main/less/coding-rules.less @@ -201,6 +201,7 @@ display: block; margin-left: 2 * @navigatorPadding; font-weight: bold; + cursor: pointer; } .coding-rules-detail-parameter-description { @@ -213,6 +214,7 @@ .box-sizing(border-box); .subtitle { + margin-top: @navigatorPadding; font-size: @baseFontSize; } } -- cgit v1.2.3