summaryrefslogtreecommitdiff
path: root/app/views/projects/ci
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2017-03-31 16:30:08 +0200
committerToon Claes <toon@gitlab.com>2017-04-06 11:38:23 +0200
commit0ec3a031f4a8f392b9d79c4b638d832b1e077718 (patch)
treeb0832efa9b8e3ebbe624f3df9f0c1773e025a51b /app/views/projects/ci
parent49bdd8d63b577f079cdc47f7dd10ba83c677771a (diff)
downloadgitlab-ce-0ec3a031f4a8f392b9d79c4b638d832b1e077718.tar.gz
Show the test coverage if it is availabletc-show-pipeline-coverage-if-avail
Do not check if coverage is enabled, just show it when it is available.
Diffstat (limited to 'app/views/projects/ci')
-rw-r--r--app/views/projects/ci/builds/_build.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/ci/builds/_build.html.haml b/app/views/projects/ci/builds/_build.html.haml
index aeed293a724..508465cbfb7 100644
--- a/app/views/projects/ci/builds/_build.html.haml
+++ b/app/views/projects/ci/builds/_build.html.haml
@@ -4,7 +4,6 @@
- retried = local_assigns.fetch(:retried, false)
- pipeline_link = local_assigns.fetch(:pipeline_link, false)
- stage = local_assigns.fetch(:stage, false)
-- coverage = local_assigns.fetch(:coverage, false)
- allow_retry = local_assigns.fetch(:allow_retry, false)
%tr.build.commit{ class: ('retried' if retried) }
@@ -88,7 +87,7 @@
%span= time_ago_with_tooltip(build.finished_at)
%td.coverage
- - if coverage && build.try(:coverage)
+ - if build.try(:coverage)
#{build.coverage}%
%td