2017-06-02 13:24:42 +00:00
|
|
|
#js-pipeline-header-vue.pipeline-header-container
|
2016-05-17 04:29:11 +00:00
|
|
|
|
|
|
|
- if @commit
|
2016-11-10 22:53:32 +00:00
|
|
|
.commit-box
|
2016-05-17 04:29:11 +00:00
|
|
|
%h3.commit-title
|
2016-10-06 22:01:42 +00:00
|
|
|
= markdown(@commit.title, pipeline: :single_line)
|
2016-05-17 04:29:11 +00:00
|
|
|
- if @commit.description.present?
|
|
|
|
%pre.commit-description
|
2016-10-06 22:01:42 +00:00
|
|
|
= preserve(markdown(@commit.description, pipeline: :single_line))
|
2016-11-10 22:53:32 +00:00
|
|
|
|
|
|
|
.info-well
|
|
|
|
- if @commit.status
|
|
|
|
.well-segment.pipeline-info
|
2017-01-22 23:44:07 +00:00
|
|
|
.icon-container
|
|
|
|
= icon('clock-o')
|
2017-01-26 11:52:58 +00:00
|
|
|
= pluralize @pipeline.statuses.count(:id), "job"
|
2016-11-10 22:53:32 +00:00
|
|
|
- if @pipeline.ref
|
2016-11-14 20:03:44 +00:00
|
|
|
from
|
2017-05-11 15:47:44 +00:00
|
|
|
= link_to @pipeline.ref, project_ref_path(@project, @pipeline.ref), class: "ref-name"
|
2016-11-10 22:53:32 +00:00
|
|
|
- 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")
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to @commit.short_id, project_commit_path(@project, @pipeline.sha), class: "commit-sha js-details-short"
|
2016-11-14 20:03:44 +00:00
|
|
|
= link_to("#", class: "js-details-expand hidden-xs hidden-sm") do
|
|
|
|
%span.text-expander
|
|
|
|
\...
|
|
|
|
%span.js-details-content.hide
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full"
|
2017-04-06 21:10:14 +00:00
|
|
|
= clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard")
|