BigW Consortium Gitlab

index.html.haml 2.01 KB
Newer Older
Kamil Trzcinski committed
1
- page_title "Builds"
Kamil Trzcinski committed
2
= render "header_title"
Kamil Trzcinski committed
3

4
.top-area
5
  %ul.nav-links
Kamil Trzcinski committed
6 7
    %li{class: ('active' if @scope.nil?)}
      = link_to project_builds_path(@project) do
8
        All
9 10
        %span.badge.js-totalbuilds-count
          = number_with_delimiter(@all_builds.count(:id))
11

12 13 14

    %li{class: ('active' if @scope == 'running')}
      = link_to project_builds_path(@project, scope: :running) do
Kamil Trzcinski committed
15
        Running
16 17
        %span.badge.js-running-count
          = number_with_delimiter(@all_builds.running_or_pending.count(:id))
Kamil Trzcinski committed
18 19 20 21

    %li{class: ('active' if @scope == 'finished')}
      = link_to project_builds_path(@project, scope: :finished) do
        Finished
22 23
        %span.badge.js-running-count
          = number_with_delimiter(@all_builds.finished.count(:id))
Kamil Trzcinski committed
24

25
  .nav-controls
26
    - if can?(current_user, :update_build, @project)
27 28 29 30
      - if @all_builds.running_or_pending.any?
        = link_to 'Cancel running', cancel_all_namespace_project_builds_path(@project.namespace, @project),
          data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post

31
      - unless @repository.gitlab_ci_yml
32 33
        = link_to 'Get started with Builds', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info'

34 35 36 37
      = link_to ci_lint_path, class: 'btn btn-default' do
        = icon('wrench')
        %span CI Lint

38
.row-content-block
Kamil Trzcinski committed
39
  #{(@scope || 'running').capitalize} builds from this project
Kamil Trzcinski committed
40

Kamil Trzcinski committed
41 42 43 44 45
%ul.content-list
  - if @builds.blank?
    %li
      .nothing-here-block No builds to show
  - else
Douwe Maan committed
46 47 48 49 50
    .table-holder
      %table.table.builds
        %thead
          %tr
            %th Status
51
            %th Build ID
Douwe Maan committed
52 53
            %th Commit
            %th Ref
Kamil Trzcinski committed
54
            %th Stage
Douwe Maan committed
55
            %th Name
56
            %th Tags
Douwe Maan committed
57 58
            %th Duration
            %th Finished at
59 60
            - if @project.build_coverage_enabled?
              %th Coverage
Douwe Maan committed
61 62
            %th

63
        = render @builds, commit_sha: true, ref: true, stage: true, allow_retry: true, coverage: @project.build_coverage_enabled?
Kamil Trzcinski committed
64

Kamil Trzcinski committed
65
    = paginate @builds, theme: 'gitlab'