From: Stas Vilchik Date: Tue, 1 Jul 2014 06:15:18 +0000 (+0600) Subject: SONAR-5209 Display issues when the code is not available X-Git-Tag: 4.4-RC1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1adbbb6ad2d467ec9f968a321c2c350ae0ea0dc;p=sonarqube.git SONAR-5209 Display issues when the code is not available --- diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index b13c89ecf56..12392598ee8 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -273,6 +273,7 @@ define [ showZeroLine: -> r = false + r = true unless @options.main.state.get 'hasSource' @showBlocks.forEach (block) -> r = true if block.from <= 0 r 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 6e3eed85398..c1547366f67 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 @@ -13,7 +13,7 @@ @@ -37,7 +37,7 @@ @@ -65,19 +65,19 @@ {{/if}} - {{#if state.hasSource}} + {{#unless state.removed}}
  • {{t 'component_viewer.issues.unresolved_issues'}}
  • - {{/if}} - {{#if state.hasSource}} + {{/unless}} + {{#unless state.removed}}
  • {{t 'component_viewer.issues.fixed_issues'}}
  • - {{/if}} - {{#if state.hasSource}} + {{/unless}} + {{#unless state.removed}}
  • {{t 'component_viewer.issues.false_positive_issues'}} {{component.measures.false_positive_issues}} @@ -90,7 +90,7 @@ {{component.measures.false_positive_issues}}
  • {{/if}} - {{/if}} + {{/unless}}