From 6f94c105fcbc3efbc0cc632a605e16cc5a5a6b8d Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 14 May 2014 17:31:06 +0200 Subject: [PATCH] SONAR-5209 Decorators --- .../src/main/hbs/component-viewer/header.hbs | 125 ++++++++++-------- .../src/main/hbs/component-viewer/source.hbs | 2 +- .../src/main/less/component-viewer.less | 25 +++- 3 files changed, 93 insertions(+), 59 deletions(-) diff --git a/sonar-server/src/main/hbs/component-viewer/header.hbs b/sonar-server/src/main/hbs/component-viewer/header.hbs index eef50ec2106..68c96c002b2 100644 --- a/sonar-server/src/main/hbs/component-viewer/header.hbs +++ b/sonar-server/src/main/hbs/component-viewer/header.hbs @@ -18,65 +18,80 @@
- - {{#if component.measures.ncloc}} -
- {{component.measures.ncloc}} - {{t 'metric.ncloc.name'}} -
- {{/if}} - -
+ - - {{#if component.measures.debt}} + - - {{#if component.measures.coverage}} -
- {{component.measures.coverage}} - {{t 'metric.coverage.name'}} -
- {{/if}} - -
+ - - {{#if component.measures.duplication_density}} -
- {{component.measures.duplication_density}} - Duplications -
- {{/if}} - -
+
@@ -100,7 +115,7 @@ -
+