2039c8280d
This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
22 lines
968 B
Text
22 lines
968 B
Text
- @no_container = true
|
|
- page_title "Jobs"
|
|
|
|
%div{ class: container_class }
|
|
.top-area
|
|
- build_path_proc = ->(scope) { project_jobs_path(@project, scope: scope) }
|
|
= 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)
|
|
- if @all_builds.running_or_pending.limit(1).any? # rubocop: disable CodeReuse/ActiveRecord
|
|
= 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
|
|
= link_to 'Get started with Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
|
|
|
|
= link_to project_ci_lint_path(@project), class: 'btn btn-default' do
|
|
%span CI lint
|
|
|
|
.content-list.builds-content-list
|
|
= render "table", builds: @builds, project: @project
|