debian-mirror-gitlab/app/views/projects/pipelines/_info.html.haml

36 lines
1.4 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
#js-pipeline-header-vue.pipeline-header-container
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
- if @commit.present?
2017-08-17 22:00:37 +05:30
.commit-box
2016-06-02 11:05:42 +05:30
%h3.commit-title
2016-11-03 12:29:30 +05:30
= markdown(@commit.title, pipeline: :single_line)
2016-06-02 11:05:42 +05:30
- if @commit.description.present?
2018-10-15 14:42:47 +05:30
.commit-description<
2016-11-03 12:29:30 +05:30
= preserve(markdown(@commit.description, pipeline: :single_line))
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
.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)})"
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
.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-11-08 19:23:39 +05:30
= link_to("#", class: "js-details-expand d-none d-sm-none d-md-inline") do
2018-03-17 18:26:18 +05:30
%span.text-expander
2018-11-08 19:23:39 +05:30
= sprite_icon('ellipsis_h', size: 12)
2018-03-17 18:26:18 +05:30
%span.js-details-content.hide
= 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")