2020-06-22 08:08:47 -04:00
|
|
|
- breadcrumb_title _("Jobs")
|
|
|
|
- page_title _("Jobs")
|
2016-06-15 09:07:06 -04:00
|
|
|
|
2019-09-03 05:03:35 -04: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 09:07:06 -04:00
|
|
|
|
2019-09-03 05:03:35 -04:00
|
|
|
- if @all_builds.running_or_pending.any?
|
|
|
|
#stop-jobs-modal
|
|
|
|
.nav-controls
|
|
|
|
%button#stop-jobs-button.btn.btn-danger{ data: { toggle: 'modal',
|
|
|
|
target: '#stop-jobs-modal',
|
|
|
|
url: cancel_all_admin_jobs_path } }
|
|
|
|
= s_('AdminArea|Stop all jobs')
|
2016-06-15 09:07:06 -04:00
|
|
|
|
2019-09-03 05:03:35 -04:00
|
|
|
.row-content-block.second-block
|
|
|
|
#{(@scope || 'all').capitalize} jobs
|
2016-06-15 09:07:06 -04:00
|
|
|
|
2019-09-03 05:03:35 -04:00
|
|
|
%ul.content-list.builds-content-list.admin-builds-table
|
|
|
|
= render "projects/jobs/table", builds: @builds, admin: true
|