2016-11-14 15:03:44 -05:00
|
|
|
.page-content-header
|
|
|
|
.header-main-content
|
2017-04-04 15:21:12 -04:00
|
|
|
= render 'ci/status/badge', status: @pipeline.detailed_status(current_user), title: @pipeline.status_title
|
2017-03-13 11:39:12 -04:00
|
|
|
%strong Pipeline ##{@pipeline.id}
|
|
|
|
triggered #{time_ago_with_tooltip(@pipeline.created_at)}
|
|
|
|
- if @pipeline.user
|
|
|
|
by
|
2017-03-23 04:43:34 -04:00
|
|
|
= user_avatar(user: @pipeline.user, size: 24)
|
|
|
|
= user_link(@pipeline.user)
|
2016-11-14 15:03:44 -05:00
|
|
|
.header-action-buttons
|
2016-11-10 17:53:32 -05:00
|
|
|
- if can?(current_user, :update_pipeline, @pipeline.project)
|
2017-02-14 08:56:28 -05:00
|
|
|
- if @pipeline.retryable?
|
2017-02-21 11:50:21 -05:00
|
|
|
= link_to "Retry", retry_namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), class: 'js-retry-button btn btn-inverted-secondary', method: :post
|
2017-02-14 08:56:28 -05:00
|
|
|
- if @pipeline.cancelable?
|
2016-11-14 15:03:44 -05:00
|
|
|
= link_to "Cancel running", cancel_namespace_project_pipeline_path(@pipeline.project.namespace, @pipeline.project, @pipeline.id), data: { confirm: 'Are you sure?' }, class: 'btn btn-danger', method: :post
|
2016-05-17 00:29:11 -04:00
|
|
|
|
|
|
|
- if @commit
|
2016-11-10 17:53:32 -05:00
|
|
|
.commit-box
|
2016-05-17 00:29:11 -04:00
|
|
|
%h3.commit-title
|
2016-10-06 18:01:42 -04:00
|
|
|
= markdown(@commit.title, pipeline: :single_line)
|
2016-05-17 00:29:11 -04:00
|
|
|
- if @commit.description.present?
|
|
|
|
%pre.commit-description
|
2016-10-06 18:01:42 -04:00
|
|
|
= preserve(markdown(@commit.description, pipeline: :single_line))
|
2016-11-10 17:53:32 -05:00
|
|
|
|
|
|
|
.info-well
|
|
|
|
- if @commit.status
|
|
|
|
.well-segment.pipeline-info
|
2017-01-22 18:44:07 -05:00
|
|
|
.icon-container
|
|
|
|
= icon('clock-o')
|
2017-01-26 06:52:58 -05:00
|
|
|
= pluralize @pipeline.statuses.count(:id), "job"
|
2016-11-10 17:53:32 -05:00
|
|
|
- if @pipeline.ref
|
2016-11-14 15:03:44 -05:00
|
|
|
from
|
2016-11-10 17:53:32 -05:00
|
|
|
= link_to @pipeline.ref, namespace_project_commits_path(@project.namespace, @project, @pipeline.ref), class: "monospace"
|
|
|
|
- if @pipeline.duration
|
|
|
|
in
|
|
|
|
= time_interval_in_words(@pipeline.duration)
|
|
|
|
- if @pipeline.queued_duration
|
|
|
|
= "(queued for #{time_interval_in_words(@pipeline.queued_duration)})"
|
|
|
|
|
|
|
|
.well-segment.branch-info
|
|
|
|
.icon-container.commit-icon
|
|
|
|
= custom_icon("icon_commit")
|
2016-11-14 15:03:44 -05:00
|
|
|
= link_to @commit.short_id, namespace_project_commit_path(@project.namespace, @project, @pipeline.sha), class: "monospace js-details-short"
|
|
|
|
= link_to("#", class: "js-details-expand hidden-xs hidden-sm") do
|
|
|
|
%span.text-expander
|
|
|
|
\...
|
|
|
|
%span.js-details-content.hide
|
|
|
|
= link_to @pipeline.sha, namespace_project_commit_path(@project.namespace, @project, @pipeline.sha), class: "monospace commit-hash-full"
|
2017-04-06 17:10:14 -04:00
|
|
|
= clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard")
|