2021-01-11 21:10:36 +00:00
|
|
|
- add_page_specific_style 'page_bundles/ci_status'
|
2021-01-26 18:09:30 +00:00
|
|
|
- add_page_specific_style 'page_bundles/admin/jobs_index'
|
2021-01-11 21:10:36 +00:00
|
|
|
|
2020-06-22 12:08:47 +00:00
|
|
|
- breadcrumb_title _("Jobs")
|
|
|
|
- page_title _("Jobs")
|
2016-06-15 13:07:06 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
|
|
|
|
- build_path_proc = ->(scope) { admin_jobs_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
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
- if @all_builds.running_or_pending.any?
|
2020-10-28 21:08:42 +00:00
|
|
|
#js-stop-jobs-modal
|
2019-09-03 09:03:35 +00:00
|
|
|
.nav-controls
|
2020-10-28 21:08:42 +00:00
|
|
|
%button#js-stop-jobs-button.btn.gl-button.btn-danger{ data: { url: cancel_all_admin_jobs_path } }
|
2019-09-03 09:03:35 +00:00
|
|
|
= s_('AdminArea|Stop all jobs')
|
2016-06-15 13:07:06 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
.row-content-block.second-block
|
|
|
|
#{(@scope || 'all').capitalize} jobs
|
2016-06-15 13:07:06 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
%ul.content-list.builds-content-list.admin-builds-table
|
|
|
|
= render "projects/jobs/table", builds: @builds, admin: true
|