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
|
2016-04-13 11:01:08 +00:00
|
|
|
= number_with_delimiter(@all_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(@all_pipelines.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')
|
|
|
|
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
|
2016-05-09 20:39:48 +00:00
|
|
|
- if @scope == 'running'
|
|
|
|
Running pipelines for this project
|
|
|
|
- elsif @scope.nil?
|
|
|
|
Pipelines for this project
|
|
|
|
- else
|
|
|
|
#{@scope.titleize} for this project
|
2016-04-12 14:16:39 +00:00
|
|
|
|
|
|
|
%ul.content-list
|
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
|
|
|
|
%th Pipeline ID
|
|
|
|
%th Commit
|
2016-04-13 11:01:08 +00:00
|
|
|
- @pipelines.stages.each do |stage|
|
|
|
|
%th
|
|
|
|
%span.has-tooltip(title="#{stage.titleize}")
|
|
|
|
= truncate(stage.titleize.pluralize, length: 8)
|
2016-04-12 14:16:39 +00:00
|
|
|
%th
|
|
|
|
%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'
|