2016-05-17 00:29:11 -04:00
|
|
|
%p
|
|
|
|
.commit-info-row
|
|
|
|
Pipeline
|
|
|
|
= link_to "##{@pipeline.id}", namespace_project_pipeline_path(@project.namespace, @project, @pipeline.id), class: "monospace"
|
|
|
|
with
|
|
|
|
= pluralize @pipeline.statuses.count(:id), "build"
|
|
|
|
- if @pipeline.ref
|
|
|
|
for
|
|
|
|
= link_to @pipeline.ref, namespace_project_commits_path(@project.namespace, @project, @pipeline.ref), class: "monospace"
|
2016-08-10 10:45:30 -04:00
|
|
|
- if @pipeline.duration
|
2016-05-17 00:29:11 -04:00
|
|
|
in
|
2016-08-10 10:45:30 -04:00
|
|
|
= time_interval_in_words(@pipeline.duration)
|
2016-09-05 06:49:27 -04:00
|
|
|
- if @pipeline.queued_duration
|
2016-09-07 05:14:35 -04:00
|
|
|
= "(queued for #{time_interval_in_words(@pipeline.queued_duration)})"
|
2016-05-17 00:29:11 -04:00
|
|
|
|
|
|
|
.pull-right
|
|
|
|
= link_to namespace_project_pipeline_path(@project.namespace, @project, @pipeline), class: "ci-status ci-#{@pipeline.status}" do
|
|
|
|
= ci_icon_for_status(@pipeline.status)
|
|
|
|
= ci_label_for_status(@pipeline.status)
|
|
|
|
|
|
|
|
- if @commit
|
|
|
|
.commit-info-row
|
|
|
|
%span.light Authored by
|
|
|
|
%strong
|
|
|
|
= commit_author_link(@commit, avatar: true, size: 24)
|
|
|
|
#{time_ago_with_tooltip(@commit.authored_date)}
|
|
|
|
|
|
|
|
.commit-info-row
|
|
|
|
%span.light Commit
|
|
|
|
= link_to @pipeline.sha, namespace_project_commit_path(@project.namespace, @project, @pipeline.sha), class: "monospace"
|
|
|
|
= clipboard_button(clipboard_text: @pipeline.sha)
|
|
|
|
|
|
|
|
- if @commit
|
|
|
|
.commit-box.content-block
|
|
|
|
%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))
|