2017-08-17 10:53:50 -04:00
|
|
|
- breadcrumb_title "Jobs"
|
2016-06-15 09:07:06 -04:00
|
|
|
- @no_container = true
|
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-15 09:07:06 -04:00
|
|
|
|
2017-10-04 12:32:03 -04:00
|
|
|
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
|
2017-05-16 07:41:15 -04:00
|
|
|
- build_path_proc = ->(scope) { admin_jobs_path(scope: scope) }
|
2016-09-12 03:52:56 -04:00
|
|
|
= render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
|
2016-06-15 09:07:06 -04:00
|
|
|
|
|
|
|
.nav-controls
|
|
|
|
- if @all_builds.running_or_pending.any?
|
2017-05-16 07:41:15 -04:00
|
|
|
= link_to 'Cancel all', cancel_all_admin_jobs_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
|
2016-06-15 09:07:06 -04:00
|
|
|
|
|
|
|
.row-content-block.second-block
|
2017-01-25 11:14:58 -05:00
|
|
|
#{(@scope || 'all').capitalize} jobs
|
2016-06-15 09:07:06 -04:00
|
|
|
|
2016-11-11 11:31:48 -05:00
|
|
|
%ul.content-list.builds-content-list.admin-builds-table
|
2017-05-16 07:41:15 -04:00
|
|
|
= render "projects/jobs/table", builds: @builds, admin: true
|