diff options
author | Toon Claes <toon@gitlab.com> | 2017-03-31 17:30:08 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2017-04-06 12:38:23 +0300 |
commit | 0ec3a031f4a8f392b9d79c4b638d832b1e077718 (patch) | |
tree | b0832efa9b8e3ebbe624f3df9f0c1773e025a51b /app/views/projects/generic_commit_statuses | |
parent | 49bdd8d63b577f079cdc47f7dd10ba83c677771a (diff) |
Show the test coverage if it is available
Do not check if coverage is enabled, just show it when it is available.
Diffstat (limited to 'app/views/projects/generic_commit_statuses')
-rw-r--r-- | app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml b/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml index 07fb80750d6..f458646522c 100644 --- a/app/views/projects/generic_commit_statuses/_generic_commit_status.html.haml +++ b/app/views/projects/generic_commit_statuses/_generic_commit_status.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) %tr.generic_commit_status{ class: ('retried' if retried) } %td.status @@ -80,7 +79,7 @@ %span= time_ago_with_tooltip(generic_commit_status.finished_at) %td.coverage - - if coverage && generic_commit_status.try(:coverage) + - if generic_commit_status.try(:coverage) #{generic_commit_status.coverage}% %td |