diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-07-17 18:14:52 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-07-17 18:24:10 +0600 |
commit | ffe7d3b5b7cae5961de3db573ba02147ba95039e (patch) | |
tree | 00ab006aebc3df1670131703dc20700d770edfe8 /server/sonar-web | |
parent | bb5b674ddb3803de1db11772c21eeeca7696a087 (diff) | |
download | sonarqube-ffe7d3b5b7cae5961de3db573ba02147ba95039e.tar.gz sonarqube-ffe7d3b5b7cae5961de3db573ba02147ba95039e.zip |
Do not display coverage-per-test data for ERROR and FAILURE tests
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/hbs/component-viewer/header/covered-files-popup.hbs | 25 | ||||
-rw-r--r-- | server/sonar-web/src/main/hbs/component-viewer/header/tests-header.hbs | 4 |
2 files changed, 16 insertions, 13 deletions
diff --git a/server/sonar-web/src/main/hbs/component-viewer/header/covered-files-popup.hbs b/server/sonar-web/src/main/hbs/component-viewer/header/covered-files-popup.hbs index f4cd043fe03..0c9ca5b2b05 100644 --- a/server/sonar-web/src/main/hbs/component-viewer/header/covered-files-popup.hbs +++ b/server/sonar-web/src/main/hbs/component-viewer/header/covered-files-popup.hbs @@ -1,16 +1,17 @@ <div class="component-viewer-popup-container"> - {{#notEq test.status 'ERROR'}} - <div class="component-viewer-popup-title">{{t 'component_viewer.transition.covers'}}</div> - {{#each items}} - <div class="component-viewer-popup-section"> - <a class="component-viewer-popup-test-file link-action" data-key="{{key}}" title="{{name}}">{{name}}</a> - <span class="subtitle">{{tp 'component_viewer.x_lines_are_covered' coveredLines}}</span> - <br><span class="subtitle" title="{{dir}}">{{dir}}</span> - </div> - {{else}} - {{t 'none'}} - {{/each}} + {{#notEq test.status 'FAILURE'}} + <div class="component-viewer-popup-title">{{t 'component_viewer.transition.covers'}}</div> + {{#each items}} + <div class="component-viewer-popup-section"> + <a class="component-viewer-popup-test-file link-action" data-key="{{key}}" title="{{name}}">{{name}}</a> + <span class="subtitle">{{tp 'component_viewer.x_lines_are_covered' coveredLines}}</span> + <br><span class="subtitle" title="{{dir}}">{{dir}}</span> + </div> + {{else}} + {{t 'none'}} + {{/each}} + {{/notEq}} {{/notEq}} {{#notEq test.status 'OK'}} @@ -23,4 +24,4 @@ </div> -<div class="component-viewer-popup-arrow"></div>
\ No newline at end of file +<div class="component-viewer-popup-arrow"></div> diff --git a/server/sonar-web/src/main/hbs/component-viewer/header/tests-header.hbs b/server/sonar-web/src/main/hbs/component-viewer/header/tests-header.hbs index a1040d7a85b..a894e1ffea2 100644 --- a/server/sonar-web/src/main/hbs/component-viewer/header/tests-header.hbs +++ b/server/sonar-web/src/main/hbs/component-viewer/header/tests-header.hbs @@ -63,7 +63,9 @@ <span class="label">{{testStatusIcon status}} <span class="duration subtitle">{{durationInMs}}ms</span> {{name}}</span> - <span class="number">{{coveredLines}}</span> + {{#if coveredLines}} + <span class="number">{{coveredLines}}</span> + {{/if}} <i class="icon-chevron-right"></i> </a></li> {{else}} |