BigW Consortium Gitlab

index.html.haml 677 Bytes
Newer Older
1 2 3
- @no_container = true
= render "admin/dashboard/head"

4
%div{ class: container_class }
5 6

  .top-area
7
    - build_path_proc = ->(scope) { admin_jobs_path(scope: scope) }
8
    = render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
9 10 11

    .nav-controls
      - if @all_builds.running_or_pending.any?
12
        = link_to 'Cancel all', cancel_all_admin_jobs_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
13 14

  .row-content-block.second-block
Filipa Lacerda committed
15
    #{(@scope || 'all').capitalize} jobs
16

17
  %ul.content-list.builds-content-list.admin-builds-table
18
    = render "projects/jobs/table", builds: @builds, admin: true