]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5574 Display an explicit label when custom rule parameter is empty
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Wed, 8 Oct 2014 14:28:55 +0000 (16:28 +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/hbs/coding-rules/coding-rules-detail.hbs
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index bba7a0835aa36d1baff157d81d86a7bd8b8d599a..380c8e400aa62df4701af1969d2c799d877866c2 100644 (file)
       <dt class="coding-rules-detail-parameter-name">{{key}}</dt>
       <dd class="coding-rules-detail-parameter-description" data-key="{{key}}">
         {{#if ../../templateKey}}
-          <span class="value">{{defaultValue}}</span>
+          {{#if defaultValue }}
+            <span class="value">{{defaultValue}}</span>
+          {{else}}
+            <span class="subtitle">{{t 'coding_rules.parameter.empty'}}</span>
+          {{/if}}
         {{else}}
           {{{htmlDesc}}}
           {{#if defaultValue}}
index 0a775d01a6cdc7f57a4b841f52cf21dad35a7e8a..0023bf0405f44a30613b9d192402e23e2ce77dab 100644 (file)
@@ -1759,6 +1759,7 @@ coding_rules.ordered_by=Ordered By
 coding_rules.original=Original:
 coding_rules.overrides="{0}" overrides "{1}"
 coding_rules.overwrite=Overwrite
+coding_rules.parameter.empty=(empty)
 coding_rules.parameters=Parameters
 coding_rules.parameters.default_value=Default Value:
 coding_rules.permalink=Permalink