aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-08 11:23:00 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-08 11:23:00 +0200
commitfb41a4aaae3eab257537cda017b074962bad4339 (patch)
tree1aa504622bf10e0eb3799b68b135329699ae6591
parentdce9bddafc4432942bd2fa06420d8fe7366ee398 (diff)
downloadsonarqube-fb41a4aaae3eab257537cda017b074962bad4339.tar.gz
sonarqube-fb41a4aaae3eab257537cda017b074962bad4339.zip
SONAR-5368 Initial, bare implementation of debt remed. function display
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties7
-rw-r--r--sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs2
2 files changed, 8 insertions, 1 deletions
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 44f01dc1448..36bfe3ec60d 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -1774,6 +1774,13 @@ coding_rules.sort.creation_date=Creation Date
coding_rules.sort.name=Name
coding_rules.sort.relevance=Relevance
+coding_rules.remediation_function=Remediation function:
+coding_rules.remediation_function.LINEAR=Linear
+coding_rules.remediation_function.LINEAR_OFFSET=Linear with offset
+coding_rules.remediation_function.CONSTANT_ISSUE=Constant/issue
+coding_rules.remediation_function.coeff=Coeff
+coding_rules.remediation_function.offset=Offset
+
#------------------------------------------------------------------------------
#
# EMAIL CONFIGURATION
diff --git a/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
index f10a2691851..b9011b713fa 100644
--- a/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
+++ b/sonar-server/src/main/hbs/coding-rules/coding-rules-detail.hbs
@@ -34,7 +34,7 @@
</li>{{/if}}
- <li class="coding-rules-detail-property">{{subcharacteristic}}</li>
+ <li class="coding-rules-detail-property" title="{{t 'coding_rules.remediation_function'}} {{t 'coding_rules.remediation_function' debtRemFnType}}{{#if debtRemFnCoeff}}, {{t 'coding_rules.remediation_function.coeff'}} {{debtRemFnCoeff}}{{/if}}{{#if debtRemFnOffset}}, {{t 'coding_rules.remediation_function.offset'}} {{debtRemFnOffset}}{{/if}}">{{subcharacteristic}}</li>
<li class="coding-rules-detail-property">{{t 'coding_rules.available_since'}} {{d createdAt}}</li>
<li class="coding-rules-detail-property">{{repository}}{{#unless isManual}} ({{language}}){{/unless}}</li>