aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-10-08 16:28:55 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-10-08 16:34:06 +0200
commit067608efdf51633dae41e73e9daaed4cab54fca2 (patch)
treebf22f1f022f000a303b6b55493f564dd5f0211f4
parentd517a6685d6c58e42068dbcdfa4ffbb8a5a8a9e6 (diff)
downloadsonarqube-067608efdf51633dae41e73e9daaed4cab54fca2.tar.gz
sonarqube-067608efdf51633dae41e73e9daaed4cab54fca2.zip
SONAR-5574 Display an explicit label when custom rule parameter is empty
-rw-r--r--server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs6
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
2 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs
index bba7a0835aa..380c8e400aa 100644
--- a/server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs
+++ b/server/sonar-web/src/main/hbs/coding-rules/coding-rules-detail.hbs
@@ -116,7 +116,11 @@
<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}}
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index 0a775d01a6c..0023bf0405f 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -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