aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/source-viewer
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-21 10:45:01 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-03-21 14:18:29 +0100
commite4812e68e4e79a81911f1ac652e4ccb2f28ddac6 (patch)
tree43e014c921808dbac117fd3067dafe6022ae938d /server/sonar-web/src/main/js/components/source-viewer
parent8b618fcbddab0602203e5b79111c67ee263d6992 (diff)
downloadsonarqube-e4812e68e4e79a81911f1ac652e4ccb2f28ddac6.tar.gz
sonarqube-e4812e68e4e79a81911f1ac652e4ccb2f28ddac6.zip
fix display of covered lines in source viewer's details
Diffstat (limited to 'server/sonar-web/src/main/js/components/source-viewer')
-rw-r--r--server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js2
-rw-r--r--server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
index 1a933892f76..953a3e90f80 100644
--- a/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
+++ b/server/sonar-web/src/main/js/components/source-viewer/measures-overlay.js
@@ -123,7 +123,7 @@ export default ModalView.extend({
calcAdditionalMeasures (measures) {
if (measures.lines_to_cover && measures.uncovered_lines) {
- measures.covered_lines = measures.lines_to_cover - measures.uncovered_lines;
+ measures.covered_lines = measures.lines_to_cover_raw - measures.uncovered_lines_raw;
}
if (measures.conditions_to_cover && measures.uncovered_conditions) {
measures.covered_conditions = measures.conditions_to_cover - measures.uncovered_conditions;
diff --git a/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs b/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs
index 72d2002690f..026a3de5310 100644
--- a/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs
+++ b/server/sonar-web/src/main/js/components/source-viewer/templates/measures/_source-viewer-measures-coverage.hbs
@@ -22,7 +22,7 @@
</div>
<div class="measure measure-one-line" data-metric="lines_to_cover">
<span class="measure-name">Lines</span>
- <span class="measure-value">{{measures.covered_lines}}/{{measures.lines_to_cover}}</span>
+ <span class="measure-value">{{formatMeasure measures.covered_lines 'INT'}}/{{measures.lines_to_cover}}</span>
</div>
{{#if measures.conditions_to_cover}}
<div class="measure measure-one-line" data-metric="conditions_to_cover">