debian-mirror-gitlab/app/views/projects/jobs/index.html.haml

23 lines
968 B
Text
Raw Normal View History

- @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 }
.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
.nav-controls
- if can?(current_user, :update_build, @project)
2018-12-05 23:21:45 +05:30
- if @all_builds.running_or_pending.limit(1).any? # rubocop: disable CodeReuse/ActiveRecord
2017-09-10 17:25:29 +05:30
= link_to 'Cancel running', cancel_all_project_jobs_path(@project),
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'
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
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