2016-05-17 00:29:11 -04:00
|
|
|
|
2017-12-05 08:15:30 -05:00
|
|
|
- if @commit.present?
|
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?
|
2018-05-07 13:08:57 -04:00
|
|
|
.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
|
|
|
|
2017-12-05 08:15:30 -05:00
|
|
|
.info-well
|
|
|
|
- if @commit.status
|
|
|
|
.well-segment.pipeline-info
|
|
|
|
.icon-container
|
|
|
|
= icon('clock-o')
|
|
|
|
= pluralize @pipeline.total_size, "job"
|
|
|
|
- if @pipeline.ref
|
|
|
|
from
|
|
|
|
= link_to @pipeline.ref, project_ref_path(@project, @pipeline.ref), class: "ref-name"
|
|
|
|
- if @pipeline.duration
|
|
|
|
in
|
|
|
|
= time_interval_in_words(@pipeline.duration)
|
|
|
|
- if @pipeline.queued_duration
|
|
|
|
= "(queued for #{time_interval_in_words(@pipeline.queued_duration)})"
|
2016-11-10 17:53:32 -05:00
|
|
|
|
2017-12-05 08:15:30 -05:00
|
|
|
.well-segment.branch-info
|
|
|
|
.icon-container.commit-icon
|
|
|
|
= custom_icon("icon_commit")
|
|
|
|
= link_to @commit.short_id, project_commit_path(@project, @pipeline.sha), class: "commit-sha js-details-short"
|
2018-04-13 16:56:26 -04:00
|
|
|
= link_to("#", class: "js-details-expand d-none d-sm-none d-md-inline") do
|
2017-12-05 08:15:30 -05:00
|
|
|
%span.text-expander
|
2018-06-20 03:36:50 -04:00
|
|
|
= sprite_icon('ellipsis_h', size: 12)
|
2018-04-24 17:40:46 -04:00
|
|
|
%span.js-details-content.hide
|
2017-12-05 08:15:30 -05:00
|
|
|
= link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full"
|
|
|
|
= clipboard_button(text: @pipeline.sha, title: "Copy commit SHA to clipboard")
|
2018-07-20 02:15:14 -04:00
|
|
|
|
|
|
|
= render_if_exists "projects/pipelines/info_extension", pipeline: @pipeline
|