summaryrefslogtreecommitdiff
path: root/app/views/projects/pipelines/index.html.haml
blob: 2d1df095bfa061ce4629a96b8d9d9936a3a66550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
- @no_container = true
- page_title "Pipelines"
= render "projects/pipelines/head"

%div{ class: container_class }
  .top-area
    %ul.nav-links
      %li{class: ('active' if @scope.nil?)}
        = link_to project_pipelines_path(@project) do
          All
          %span.badge.js-totalbuilds-count
            = number_with_delimiter(@pipelines_count)

      %li{class: ('active' if @scope == 'running')}
        = link_to project_pipelines_path(@project, scope: :running) do
          Running
          %span.badge.js-running-count
            = number_with_delimiter(@running_or_pending_count)

      %li{class: ('active' if @scope == 'branches')}
        = link_to project_pipelines_path(@project, scope: :branches) do
          Branches

      %li{class: ('active' if @scope == 'tags')}
        = link_to project_pipelines_path(@project, scope: :tags) do
          Tags

    .nav-controls
      - if can? current_user, :create_pipeline, @project
        = link_to new_namespace_project_pipeline_path(@project.namespace, @project), class: 'btn btn-create' do
          Run pipeline

        - 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

  %div.content-list.pipelines
    - stages = @pipelines.stages
    - if @pipelines.blank?
      %div
        .nothing-here-block No pipelines to show
    - else
      .table-holder
        %table.table.builds
          %thead
            %th.col-xs-1.col-sm-1 Status
            %th.col-xs-2.col-sm-4 Pipeline
            %th.col-xs-2.col-sm-2 Stages
            %th.col-xs-2.col-sm-2
            %th.hidden-xs.col-sm-3
          = render @pipelines, commit_sha: true, stage: true, allow_retry: true, stages: stages

      = paginate @pipelines, theme: 'gitlab'