From d74be88c29c5b967278aab5202f0aff1184143a0 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 1 Jul 2014 16:04:50 +0600 Subject: [PATCH] SONAR-5209 Issues header adjustments --- .../resources/org/sonar/l10n/core.properties | 1 + .../src/main/hbs/component-viewer/header.hbs | 4 +- .../component-viewer/header/issues-header.hbs | 80 +++++++++---------- 3 files changed, 43 insertions(+), 42 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 d650fd7c4bf..e6aa5ec764e 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -2631,6 +2631,7 @@ component_viewer.measure_section.size=Size component_viewer.measure_section.complexity=Complexity component_viewer.measure_section.structure=Structure component_viewer.measure_section.documentation=Documentation +component_viewer.measure_section.resolutions=Resolutions component_viewer.measure_section.severities=Severities component_viewer.measure_section.rules=Rules component_viewer.measure_section.issues=Issues diff --git a/sonar-server/src/main/hbs/component-viewer/header.hbs b/sonar-server/src/main/hbs/component-viewer/header.hbs index 3cb0753ce3c..313d7c3ffde 100644 --- a/sonar-server/src/main/hbs/component-viewer/header.hbs +++ b/sonar-server/src/main/hbs/component-viewer/header.hbs @@ -60,7 +60,7 @@
- {{default component.measures.fDebt '–'}} + {{default component.measures.fDebt '0'}} {{t 'component_viewer.header.debt'}}
{{#if component.measures.fIssues}} @@ -136,4 +136,4 @@ {{/unless}}
-
\ No newline at end of file +
diff --git a/sonar-server/src/main/hbs/component-viewer/header/issues-header.hbs b/sonar-server/src/main/hbs/component-viewer/header/issues-header.hbs index c1547366f67..70193cb3292 100644 --- a/sonar-server/src/main/hbs/component-viewer/header/issues-header.hbs +++ b/sonar-server/src/main/hbs/component-viewer/header/issues-header.hbs @@ -6,6 +6,46 @@ {{/if}} +
+
+ {{#if hasIssues}}{{t 'component_viewer.measure_section.resolutions'}}{{else}}{{t 'component_viewer.no_issues'}}{{/if}} +
+
+
+ {{#ifNotEmpty state.severities}}
@@ -54,46 +94,6 @@
{{/ifNotEmpty}} -
-
- {{#if hasIssues}} {{else}}{{t 'component_viewer.no_issues'}}{{/if}} -
- -
- {{#if hasIssues}}
 
-- 2.39.5