2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
|
|
|
= render "admin/dashboard/head"
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
.top-area
|
2016-09-29 09:46:39 +05:30
|
|
|
- build_path_proc = ->(scope) { admin_builds_path(scope: scope) }
|
|
|
|
= render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
.nav-controls
|
|
|
|
- if @all_builds.running_or_pending.any?
|
|
|
|
= link_to 'Cancel all', cancel_all_admin_builds_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
|
|
|
|
|
|
|
|
.row-content-block.second-block
|
2017-08-17 22:00:37 +05:30
|
|
|
#{(@scope || 'all').capitalize} jobs
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%ul.content-list.builds-content-list.admin-builds-table
|
2016-09-29 09:46:39 +05:30
|
|
|
= render "projects/builds/table", builds: @builds, admin: true
|