diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 15:27:48 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-13 09:05:07 +0200 |
commit | 80c86bcc5b778306825e7650ccaa3c01bfd75ac0 (patch) | |
tree | 092aff77d635586a3229cc8f91fa775808cedc45 /app/views/projects/builds/_table.html.haml | |
parent | 27c3a87194a3a29c06cf8a2dd489d28ca0b552ab (diff) | |
download | gitlab-ce-80c86bcc5b778306825e7650ccaa3c01bfd75ac0.tar.gz |
Create shared partial for project and admin builds
Diffstat (limited to 'app/views/projects/builds/_table.html.haml')
-rw-r--r-- | app/views/projects/builds/_table.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/builds/_table.html.haml b/app/views/projects/builds/_table.html.haml index 9e4fd9b767b..a4cd9596d68 100644 --- a/app/views/projects/builds/_table.html.haml +++ b/app/views/projects/builds/_table.html.haml @@ -1,3 +1,4 @@ +- admin = false unless admin - if builds.blank? %li .nothing-here-block No builds to show @@ -20,9 +21,8 @@ %th - if admin - - builds.each do |build| - = render "admin/builds/build", build: build + = render partial: "shared/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, stage: true, allow_retry: true, runner: true, admin: true } - else - = render builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: project.build_coverage_enabled? + = render partial: "shared/builds/build", collection: builds, as: :build, locals: {commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: project.build_coverage_enabled? } = paginate builds, theme: 'gitlab' |