2016-06-16 23:09:34 +05:30
|
|
|
- @no_container = true
|
2017-08-17 22:00:37 +05:30
|
|
|
- page_title "Jobs"
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
%div{ class: container_class }
|
2016-06-16 23:09:34 +05:30
|
|
|
.top-area
|
2017-09-10 17:25:29 +05:30
|
|
|
- build_path_proc = ->(scope) { project_jobs_path(@project, scope: scope) }
|
2016-09-29 09:46:39 +05:30
|
|
|
= render "shared/builds/tabs", build_path_proc: build_path_proc, all_builds: @all_builds, scope: @scope
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
.nav-controls
|
|
|
|
- if can?(current_user, :update_build, @project)
|
2018-03-17 18:26:18 +05:30
|
|
|
- if @all_builds.running_or_pending.limit(1).any?
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Cancel running', cancel_all_project_jobs_path(@project),
|
2016-06-16 23:09:34 +05:30
|
|
|
data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
|
|
|
|
|
|
|
|
- unless @repository.gitlab_ci_yml
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to 'Get started with Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
= link_to project_ci_lint_path(@project), class: 'btn btn-default' do
|
2017-08-17 22:00:37 +05:30
|
|
|
%span CI lint
|
2016-06-16 23:09:34 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.content-list.builds-content-list
|
2016-09-29 09:46:39 +05:30
|
|
|
= render "table", builds: @builds, project: @project
|