summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Köhler <skoehler@htwg-konstanz.de>2016-01-21 21:17:16 +0100
committerRémy Coutable <remy@rymai.me>2016-02-22 19:33:25 +0100
commitbea6aa3377dfc685ed2d6427609e17318279e8b1 (patch)
tree33a1a5edf71abd42cbb9d54da1d5ec59b652aa3c
parent493d166d66902e645f3b0afb76526317fd98ceeb (diff)
downloadgitlab-ce-bea6aa3377dfc685ed2d6427609e17318279e8b1.tar.gz
Show test coverage on project builds page
-rw-r--r--app/views/projects/builds/index.html.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml
index 5e3bd14565e..14f1d3226bb 100644
--- a/app/views/projects/builds/index.html.haml
+++ b/app/views/projects/builds/index.html.haml
@@ -51,9 +51,11 @@
%th Name
%th Duration
%th Finished at
+ - if @project.build_coverage_enabled?
+ %th Coverage
%th
- @builds.each do |build|
- = render 'projects/commit_statuses/commit_status', commit_status: build, commit_sha: true, stage: true, allow_retry: true
+ = render 'projects/commit_statuses/commit_status', commit_status: build, commit_sha: true, stage: true, coverage: @project.build_coverage_enabled?, allow_retry: true
= paginate @builds, theme: 'gitlab'