summaryrefslogtreecommitdiff
path: root/app/views/projects/builds/_table.html.haml
blob: d77405b2b1fa75ea0bd6b1f82c1fdc183872f591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
- admin = false unless defined?(admin)

- 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 Coverage
          %th

      - if admin
        = render partial: "projects/ci/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, stage: true, allow_retry: true, runner: true, coverage: true, admin: true }
      - else
        = render partial: "projects/ci/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'