aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-04-09 10:51:38 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-04-09 10:51:38 +0200
commit0dc04c7e5a4f0e02d18cd2fef91924ddd6d30cc6 (patch)
tree3b8a95c432accc15f0a35c276309e7a28eb60cb7
parent52c881f7c12e803379a71e6d539a87e9112145e5 (diff)
downloadsonarqube-0dc04c7e5a4f0e02d18cd2fef91924ddd6d30cc6.tar.gz
sonarqube-0dc04c7e5a4f0e02d18cd2fef91924ddd6d30cc6.zip
SONAR-6402 Force show zero number of issues in the source viewer header
-rw-r--r--server/sonar-web/src/main/hbs/source-viewer/source-viewer-header.hbs20
1 files changed, 9 insertions, 11 deletions
diff --git a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-header.hbs b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-header.hbs
index e3ce5eed3d4..bb726d9d5e6 100644
--- a/server/sonar-web/src/main/hbs/source-viewer/source-viewer-header.hbs
+++ b/server/sonar-web/src/main/hbs/source-viewer/source-viewer-header.hbs
@@ -62,17 +62,15 @@
</div>
{{/notNull}}
- {{#notNull measures.issues}}
- <div class="source-viewer-header-measure">
- <span class="source-viewer-header-measure-value">
- <a class="source-viewer-header-external-link" target="_blank"
- href="{{link '/issues/search#resolved=false|fileUuids=' uuid}}">
- {{measures.issues}}&nbsp;<i class="icon-detach"></i>
- </a>
- </span>
- <span class="source-viewer-header-measure-label">{{t 'metric.violations.name'}}</span>
- </div>
- {{/notNull}}
+ <div class="source-viewer-header-measure">
+ <span class="source-viewer-header-measure-value">
+ <a class="source-viewer-header-external-link" target="_blank"
+ href="{{link '/issues/search#resolved=false|fileUuids=' uuid}}">
+ {{default measures.issues 0}}&nbsp;<i class="icon-detach"></i>
+ </a>
+ </span>
+ <span class="source-viewer-header-measure-label">{{t 'metric.violations.name'}}</span>
+ </div>
{{#notNull measures.coverage}}
<div class="source-viewer-header-measure">