gitlab-org--gitlab-foss/app/views/projects/pipelines/index.html.haml

66 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-04-12 14:16:39 +00:00
- page_title "Pipelines"
= render "header_title"
.top-area
%ul.nav-links
%li{class: ('active' if @scope.nil?)}
2016-04-12 17:57:22 +00:00
= link_to project_pipelines_path(@project) do
2016-04-12 14:16:39 +00:00
All
%span.badge.js-totalbuilds-count
= number_with_delimiter(@all_commits.count(:id))
%li{class: ('active' if @scope == 'branches')}
2016-04-12 17:57:22 +00:00
= link_to project_pipelines_path(@project, scope: :branches) do
2016-04-12 14:16:39 +00:00
Branches
%span.badge.js-running-count
= number_with_delimiter(@all_commits.running_or_pending.count(:id))
%li{class: ('active' if @scope == 'tags')}
2016-04-12 17:57:22 +00:00
= link_to project_pipelines_path(@project, scope: :tags) do
2016-04-12 14:16:39 +00:00
Tags
%span.badge.js-running-count
= number_with_delimiter(@all_commits.running_or_pending.count(:id))
%li{class: ('active' if @scope == 'running')}
2016-04-12 17:57:22 +00:00
= link_to project_pipelines_path(@project, scope: :running) do
2016-04-12 14:16:39 +00:00
Failed
%span.badge.js-running-count
= number_with_delimiter(@all_commits.running_or_pending.count(:id))
.nav-controls
- if can? current_user, :create_pipeline, @project
2016-04-12 17:57:22 +00:00
= link_to new_namespace_project_pipeline_path(@project.namespace, @project), class: 'btn btn-create' do
2016-04-12 14:16:39 +00:00
= icon('plus')
New
- if can?(current_user, :update_build, @project)
- 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
= icon('wrench')
%span CI Lint
.gray-content-block
Pipelines for #{(@scope || 'changes')} on this project
%ul.content-list
- stages = @commits.stages
- if @commits.blank?
%li
.nothing-here-block No pipelines to show
- else
.table-holder
%table.table.builds
%tbody
%th Pipeline ID
%th Commit
- @commits.stages.each do |stage|
2016-04-12 17:57:22 +00:00
%th.rotate
2016-04-12 14:16:39 +00:00
= stage.titleize
%th
%th
2016-04-12 17:57:22 +00:00
= render @commits, commit_sha: true, stage: true, allow_retry: true, stages: stages
2016-04-12 14:16:39 +00:00
= paginate @commits, theme: 'gitlab'