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

62 lines
2 KiB
Text
Raw Normal View History

2016-06-03 14:09:45 -04:00
- @no_container = true
2016-04-12 10:16:39 -04:00
- page_title "Pipelines"
= render "projects/pipelines/head"
2016-04-12 10:16:39 -04:00
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-06-03 14:09:45 -04:00
.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
2016-07-06 13:15:28 -04:00
Run pipeline
2016-06-03 14:09:45 -04:00
- unless @repository.gitlab_ci_yml
= link_to 'Get started with Pipelines', help_page_path('ci/quick_start/README'), class: 'btn btn-info'
2016-06-03 14:09:45 -04:00
= link_to ci_lint_path, class: 'btn btn-default' do
%span CI Lint
%ul.content-list.pipelines
- stages = @pipelines.stages
- if @pipelines.blank?
%li
.nothing-here-block No pipelines to show
- else
.table-holder
%table.table.builds
%tbody
%th Status
2016-06-03 14:09:45 -04:00
%th Commit
- stages.each do |stage|
%th.stage
2016-08-26 18:06:09 -04:00
- if stage.titleize.length > 12
%span.has-tooltip{ title: "#{stage.titleize}" }
= stage.titleize
- else
2016-07-06 12:09:28 -04:00
= stage.titleize
%th
2016-06-03 14:09:45 -04:00
%th
= render @pipelines, commit_sha: true, stage: true, allow_retry: true, stages: stages
= paginate @pipelines, theme: 'gitlab'