summaryrefslogtreecommitdiff
path: root/app/views/admin/jobs/index.html.haml
blob: 32c0a801a1ddc1e619cde8163884f42c7aa9a730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- breadcrumb_title _("Jobs")
- page_title _("Jobs")

.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

  - 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')

.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