2016-06-15 13:07:06 +00:00
|
|
|
- @no_container = true
|
|
|
|
= render "admin/dashboard/head"
|
|
|
|
|
2016-06-30 13:01:26 +00:00
|
|
|
%div{ class: container_class }
|
2016-06-15 13:07:06 +00:00
|
|
|
|
|
|
|
.top-area
|
2016-09-12 07:52:56 +00:00
|
|
|
- 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-15 13:07:06 +00:00
|
|
|
|
|
|
|
.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
|
|
|
|
#{(@scope || 'all').capitalize} builds
|
|
|
|
|
2016-07-11 18:57:12 +00:00
|
|
|
%ul.content-list.builds-content-list
|
2016-09-12 16:16:40 +00:00
|
|
|
= render "projects/builds/table", builds: @builds, admin: true
|