2016-04-12 14:16:39 +00:00
|
|
|
- page_title "Pipelines"
|
2016-05-28 17:26:08 +00:00
|
|
|
= render "projects/pipelines/head"
|
2016-04-12 14:16:39 +00:00
|
|
|
|
|
|
|
.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
|
2016-05-12 18:08:18 +00:00
|
|
|
= number_with_delimiter(@pipelines_count)
|
2016-04-13 11:01:08 +00:00
|
|
|
|
|
|
|
%li{class: ('active' if @scope == 'running')}
|
|
|
|
= link_to project_pipelines_path(@project, scope: :running) do
|
|
|
|
Running
|
|
|
|
%span.badge.js-running-count
|
2016-05-12 18:08:18 +00:00
|
|
|
= number_with_delimiter(@running_or_pending_count)
|
2016-04-12 14:16:39 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
.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')
|
2016-05-16 21:34:42 +00:00
|
|
|
New pipeline
|
2016-04-12 14:16:39 +00:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2016-05-20 23:50:16 +00:00
|
|
|
%ul.content-list.pipelines
|
2016-04-13 11:01:08 +00:00
|
|
|
- stages = @pipelines.stages
|
|
|
|
- if @pipelines.blank?
|
2016-04-12 14:16:39 +00:00
|
|
|
%li
|
|
|
|
.nothing-here-block No pipelines to show
|
|
|
|
- else
|
|
|
|
.table-holder
|
|
|
|
%table.table.builds
|
|
|
|
%tbody
|
2016-05-09 23:41:18 +00:00
|
|
|
%th ID
|
2016-04-12 14:16:39 +00:00
|
|
|
%th Commit
|
2016-05-14 19:47:47 +00:00
|
|
|
- stages.each do |stage|
|
2016-05-20 23:50:16 +00:00
|
|
|
%th.stage
|
|
|
|
%span.has-tooltip{ title: "#{stage.titleize}" }
|
2016-05-16 21:34:42 +00:00
|
|
|
= stage.titleize.pluralize
|
2016-05-24 17:16:37 +00:00
|
|
|
%th Duration
|
2016-04-12 14:16:39 +00:00
|
|
|
%th
|
2016-04-13 11:01:08 +00:00
|
|
|
= render @pipelines, commit_sha: true, stage: true, allow_retry: true, stages: stages
|
2016-04-12 14:16:39 +00:00
|
|
|
|
2016-04-13 11:01:08 +00:00
|
|
|
= paginate @pipelines, theme: 'gitlab'
|