diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-20 13:34:23 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-20 13:34:23 +0200 |
commit | 8aadff754d5fd72e16bfdec5078215b8c2d064c8 (patch) | |
tree | b04ccaa12455ceb338f79ec4794fe876592ce98e /server | |
parent | 978d8a5ba9bdfff3c2cfb875e43f8f30d361a8d2 (diff) | |
download | sonarqube-8aadff754d5fd72e16bfdec5078215b8c2d064c8.tar.gz sonarqube-8aadff754d5fd72e16bfdec5078215b8c2d064c8.zip |
SONAR-6387 Improve technical debt display in Rules
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-meta.hbs | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-meta.hbs b/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-meta.hbs index fab7db7ede7..31b1ca0925e 100644 --- a/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-meta.hbs +++ b/server/sonar-web/src/main/hbs/coding-rules/rule/coding-rules-rule-meta.hbs @@ -68,23 +68,11 @@ {{#if debtRemFnType}} <li class="coding-rules-detail-property" data-toggle="tooltip" data-placement="bottom" title="{{t 'coding_rules.remediation_function'}}"> - {{t 'coding_rules.remediation_function' debtRemFnType}} - </li> - {{/if}} + {{t 'coding_rules.remediation_function' debtRemFnType}}: - {{#if debtRemFnCoeff}} - <li class="coding-rules-detail-property" - data-toggle="tooltip" data-placement="bottom" - title="{{#if effortToFixDescription}}{{effortToFixDescription}}{{else}}{{t 'coding_rules.remediation_function.coeff'}}{{/if}}"> - {{debtRemFnCoeff}} - </li> - {{/if}} - - {{#if debtRemFnOffset}} - <li class="coding-rules-detail-property" - data-toggle="tooltip" data-placement="bottom" - title="{{#eq debtRemFnType 'CONSTANT_ISSUE'}}{{t 'coding_rules.remediation_function.constant'}}{{else}}{{t 'coding_rules.remediation_function.offset'}}{{/eq}}"> - {{debtRemFnOffset}} + {{#if debtRemFnOffset}}{{debtRemFnOffset}}{{/if}} + {{#if debtRemFnCoeff}}{{#if debtRemFnOffset}}+{{/if}}{{debtRemFnCoeff}}{{/if}} + {{#if effortToFixDescription}}{{effortToFixDescription}}{{/if}} </li> {{/if}} </ul> |