index.html.haml 1.86 KB
Newer Older
Annabel Dunstone's avatar
Annabel Dunstone committed
1
- @no_container = true
Kamil Trzcinski's avatar
WIP  
Kamil Trzcinski committed
2
- page_title "Pipelines"
3
= render "projects/pipelines/head"
Kamil Trzcinski's avatar
WIP  
Kamil Trzcinski committed
4

Valery Sizov's avatar
Valery Sizov committed
5
%div{ class: container_class }
Annabel Dunstone's avatar
Annabel Dunstone committed
6 7
  .top-area
    %ul.nav-links
8
      %li{ class: ('active' if @scope.nil?) }>
Annabel Dunstone's avatar
Annabel Dunstone committed
9 10 11 12 13
        = link_to project_pipelines_path(@project) do
          All
          %span.badge.js-totalbuilds-count
            = number_with_delimiter(@pipelines_count)

14
      %li{ class: ('active' if @scope == 'running') }>
Annabel Dunstone's avatar
Annabel Dunstone committed
15 16 17 18 19
        = link_to project_pipelines_path(@project, scope: :running) do
          Running
          %span.badge.js-running-count
            = number_with_delimiter(@running_or_pending_count)

20
      %li{ class: ('active' if @scope == 'branches') }>
Annabel Dunstone's avatar
Annabel Dunstone committed
21 22 23
        = link_to project_pipelines_path(@project, scope: :branches) do
          Branches

24
      %li{ class: ('active' if @scope == 'tags') }>
Annabel Dunstone's avatar
Annabel Dunstone committed
25 26 27 28 29 30
        = 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
31
          Run pipeline
Annabel Dunstone's avatar
Annabel Dunstone committed
32 33

        - unless @repository.gitlab_ci_yml
34
          = link_to 'Get started with Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
Annabel Dunstone's avatar
Annabel Dunstone committed
35 36 37 38

        = link_to ci_lint_path, class: 'btn btn-default' do
          %span CI Lint

39
  .content-list.pipelines
Annabel Dunstone's avatar
Annabel Dunstone committed
40
    - if @pipelines.blank?
41
      %div
Annabel Dunstone's avatar
Annabel Dunstone committed
42 43 44
        .nothing-here-block No pipelines to show
    - else
      .table-holder
45
        %table.table.ci-table.js-pipeline-table
46
          %thead
47 48 49 50 51 52
            %th.pipeline-status Status
            %th.pipeline-info Pipeline
            %th.pipeline-commit Commit
            %th.pipeline-stages Stages
            %th.pipeline-date
            %th.pipeline-actions.hidden-xs
Kamil Trzcinski's avatar
Kamil Trzcinski committed
53
          = render @pipelines, commit_sha: true, stage: true, allow_retry: true
Annabel Dunstone's avatar
Annabel Dunstone committed
54 55

      = paginate @pipelines, theme: 'gitlab'