2016-06-03 14:09:45 -04:00
|
|
|
- @no_container = true
|
2017-01-25 10:51:11 -05:00
|
|
|
- page_title "Jobs"
|
2015-10-14 06:15:03 -04:00
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-03 14:09:45 -04:00
|
|
|
.top-area
|
2017-05-16 07:41:15 -04:00
|
|
|
- build_path_proc = ->(scope) { project_jobs_path(@project, scope: scope) }
|
2016-09-12 03:52:56 -04:00
|
|
|
= render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
|
2016-06-03 14:09:45 -04:00
|
|
|
|
|
|
|
.nav-controls
|
|
|
|
- if can?(current_user, :update_build, @project)
|
2017-09-26 07:42:04 -04:00
|
|
|
- if @all_builds.running_or_pending.limit(1).any?
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Cancel running', cancel_all_project_jobs_path(@project),
|
2016-06-03 14:09:45 -04:00
|
|
|
data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
|
|
|
|
|
|
|
|
- unless @repository.gitlab_ci_yml
|
2017-05-11 15:21:14 -04:00
|
|
|
= link_to 'Get started with Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
|
2016-06-03 14:09:45 -04:00
|
|
|
|
2018-04-23 10:53:21 -04:00
|
|
|
= link_to project_ci_lint_path(@project), class: 'btn btn-default' do
|
2017-04-06 09:55:11 -04:00
|
|
|
%span CI lint
|
2016-06-03 14:09:45 -04:00
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
.content-list.builds-content-list
|
2016-09-07 09:27:48 -04:00
|
|
|
= render "table", builds: @builds, project: @project
|