summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/_table.html.haml
diff options
context:
space:
mode:
authorKatarzyna Kobierska <kkobierska@gmail.com>2016-09-01 14:09:58 +0200
committerKatarzyna Kobierska <kkobierska@gmail.com>2016-09-13 09:05:07 +0200
commit4fa6941020d414bcd6ef5b469340de6c940a2055 (patch)
tree10f394a075007a27470d7fd31c3857895498d619 /app/views/projects/builds/_table.html.haml
parent0c14eaa6de4ce1c44d98581714b9c99f4e3045be (diff)
downloadgitlab-ce-4fa6941020d414bcd6ef5b469340de6c940a2055.tar.gz
Improve code
Diffstat (limited to 'app/views/projects/builds/_table.html.haml')
-rw-r--r--app/views/projects/builds/_table.html.haml29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/views/projects/builds/_table.html.haml b/app/views/projects/builds/_table.html.haml
new file mode 100644
index 00000000000..eecd1a1ee44
--- /dev/null
+++ b/app/views/projects/builds/_table.html.haml
@@ -0,0 +1,29 @@
+- if builds.blank?
+ %li
+ .nothing-here-block No builds to show
+- else
+ .table-holder
+ %table.table.builds
+ %thead
+ %tr
+ %th Status
+ %th Commit
+ - if admin
+ %th Project
+ %th Runner
+ %th Stage
+ %th Name
+ %th
+ %th
+ - unless admin
+ - if project.build_coverage_enabled?
+ %th Coverage
+
+
+ - if admin
+ - builds.each do |build|
+ = render "admin/builds/build", build: build
+ - else
+ = render builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: project.build_coverage_enabled?
+
+ = paginate builds, theme: 'gitlab'