From 067608efdf51633dae41e73e9daaed4cab54fca2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 8 Oct 2014 16:28:55 +0200 Subject: [PATCH] SONAR-5574 Display an explicit label when custom rule parameter is empty --- .../src/main/hbs/coding-rules/coding-rules-detail.hbs | 6 +++++- .../src/main/resources/org/sonar/l10n/core.properties | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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 @@
{{key}}
{{#if ../../templateKey}} - {{defaultValue}} + {{#if defaultValue }} + {{defaultValue}} + {{else}} + {{t 'coding_rules.parameter.empty'}} + {{/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 -- 2.39.5