diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-16 14:41:15 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-17 15:17:30 +0300 |
commit | 71777a4a184945d6b58170af55d9fd9fef821ac9 (patch) | |
tree | e3abb2579383d151ac4463b08a783ff9630e4b2c /app/views/admin/jobs | |
parent | a5f0656392699dad7677a368c315217ea99b3982 (diff) |
Rename BuildsController to JobsController
Rename other URL generators
admin_builds_path -> admin_jobs_path
Fix tests and more renaming
Fix more tests
Also change build_id to job_id in the controller
Diffstat (limited to 'app/views/admin/jobs')
-rw-r--r-- | app/views/admin/jobs/index.html.haml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/admin/jobs/index.html.haml b/app/views/admin/jobs/index.html.haml new file mode 100644 index 00000000000..09be17f07be --- /dev/null +++ b/app/views/admin/jobs/index.html.haml @@ -0,0 +1,18 @@ +- @no_container = true += render "admin/dashboard/head" + +%div{ class: container_class } + + .top-area + - 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 + + .nav-controls + - if @all_builds.running_or_pending.any? + = link_to 'Cancel all', cancel_all_admin_jobs_path, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post + + .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 |