2021-03-08 18:12:59 +05:30
|
|
|
- add_page_specific_style 'page_bundles/ci_status'
|
2021-03-11 19:13:27 +05:30
|
|
|
- add_page_specific_style 'page_bundles/admin/jobs_index'
|
2021-03-08 18:12:59 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
- breadcrumb_title _("Jobs")
|
|
|
|
- page_title _("Jobs")
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
- if Feature.enabled?(:admin_jobs_vue)
|
|
|
|
#admin-jobs-app{ data: { job_statuses: job_statuses.to_json, empty_state_svg_path: image_path('jobs-empty-state.svg'), url: cancel_all_admin_jobs_path } }
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
- else
|
|
|
|
.top-area
|
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.gl-flex-grow-1.gl-min-w-0.gl-w-full
|
|
|
|
.fade-left= sprite_icon('chevron-lg-left', size: 12)
|
|
|
|
.fade-right= sprite_icon('chevron-lg-right', size: 12)
|
|
|
|
- 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-16 23:09:34 +05:30
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
- if @all_builds.running_or_pending.any?
|
|
|
|
#js-stop-jobs-modal
|
|
|
|
.nav-controls
|
|
|
|
= render Pajamas::ButtonComponent.new(variant: :danger, button_options: { id: 'js-stop-jobs-button', data: { url: cancel_all_admin_jobs_path } }) do
|
|
|
|
= s_('AdminArea|Stop all jobs')
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2023-04-23 21:23:45 +05:30
|
|
|
.row-content-block.second-block
|
|
|
|
#{(@scope || 'all').capitalize} jobs
|
|
|
|
|
|
|
|
%ul.content-list.builds-content-list.admin-builds-table
|
|
|
|
= render "projects/jobs/table", builds: @builds, admin: true
|