]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5574 Display description of parameters on a custom rule
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 14:53:26 +0000 (16:53 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 14:53:26 +0000 (16:53 +0200)
server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs

index 380c8e400aa62df4701af1969d2c799d877866c2..49e14ad7d1ba112baf330c01623ad7ae1c33a575 100644 (file)
     <dl class="coding-rules-detail-parameter">
       <dt class="coding-rules-detail-parameter-name">{{key}}</dt>
       <dd class="coding-rules-detail-parameter-description" data-key="{{key}}">
+        <p>{{{htmlDesc}}}</p>
         {{#if ../../templateKey}}
+        <div class="subtitle">
           {{#if defaultValue }}
             <span class="value">{{defaultValue}}</span>
           {{else}}
-            <span class="subtitle">{{t 'coding_rules.parameter.empty'}}</span>
+            {{t 'coding_rules.parameter.empty'}}
           {{/if}}
+        </div>
         {{else}}
-          {{{htmlDesc}}}
           {{#if defaultValue}}
           <div class="subtitle">{{t 'coding_rules.parameters.default_value'}} <span class="value">{{defaultValue}}</span></div>
           {{/if}}