diff options
Diffstat (limited to 'app/views/projects/ci_commits/index.html.haml')
-rw-r--r-- | app/views/projects/ci_commits/index.html.haml | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/app/views/projects/ci_commits/index.html.haml b/app/views/projects/ci_commits/index.html.haml index 7955e5e9abf..0347c220382 100644 --- a/app/views/projects/ci_commits/index.html.haml +++ b/app/views/projects/ci_commits/index.html.haml @@ -1,11 +1,11 @@ -- page_title "CI Changes" +- page_title "Pipelines" = render "header_title" .top-area %ul.nav-links - %li{class: ('active' if @scope.nil? || @scope == 'latest')} - = link_to project_ci_commits_path(@project, scope: :latest) do - Latest + %li{class: ('active' if @scope.nil?)} + = link_to project_ci_commits_path(@project) do + All %span.badge.js-totalbuilds-count = number_with_delimiter(@all_commits.count(:id)) @@ -21,31 +21,45 @@ %span.badge.js-running-count = number_with_delimiter(@all_commits.running_or_pending.count(:id)) - %li{class: ('active' if @scope == 'failed')} - = link_to project_ci_commits_path(@project, scope: :failed) do + %li{class: ('active' if @scope == 'running')} + = link_to project_ci_commits_path(@project, scope: :running) do Failed %span.badge.js-running-count - = number_with_delimiter(@all_commits.finished.count(:id)) + = number_with_delimiter(@all_commits.running_or_pending.count(:id)) .nav-controls + - if can? current_user, :create_pipeline, @project + = link_to new_namespace_project_ci_commit_path(@project.namespace, @project), class: 'btn btn-create' do + = icon('plus') + New + - if can?(current_user, :update_build, @project) - unless @repository.gitlab_ci_yml - = link_to 'Get started with Builds', help_page_path('ci/quick_start', 'README'), class: 'btn btn-info' + = 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 = icon('wrench') %span CI Lint .gray-content-block - #{(@scope || 'running').capitalize} changes on this project + Pipelines for #{(@scope || 'changes')} on this project %ul.content-list + - stages = @commits.stages - if @commits.blank? %li - .nothing-here-block No commits to show + .nothing-here-block No pipelines to show - else .table-holder %table.table.builds - = render @commits, commit_sha: true, stage: true, allow_retry: true + %tbody + %th Pipeline ID + %th Commit + - @commits.stages.each do |stage| + %th + = stage.titleize + %th + %th + = render @commits.includes(:statuses).includes(:builds), commit_sha: true, stage: true, allow_retry: true, stages: stages = paginate @commits, theme: 'gitlab' |