summaryrefslogtreecommitdiff
path: root/app/views/projects/jobs/index.html.haml
blob: a33e3978ee12df71680b74043be58e0637713840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- @no_container = true
- page_title "Jobs"
= render "projects/pipelines/head"

%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.any?
          = link_to 'Cancel running', cancel_all_namespace_project_jobs_path(@project.namespace, @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 ci_lint_path, class: 'btn btn-default' do
          %span CI lint

  .content-list.builds-content-list
    = render "table", builds: @builds, project: @project