2018-08-02 07:48:59 -04:00
.commit-box
%h3.commit-title
= markdown(commit.title, pipeline: :single_line)
- if commit.description.present?
2018-08-02 12:20:49 -04:00
%pre.commit-description<
2018-08-02 07:48:59 -04:00
= preserve(markdown(commit.description, pipeline: :single_line))
2016-11-10 17:53:32 -05:00
2018-08-02 07:48:59 -04:00
.info-well
2019-01-28 07:12:30 -05:00
.well-segment.pipeline-info
2020-07-23 02:09:19 -04:00
.icon-container.gl-vertical-align-text-bottom
2020-08-10 14:09:54 -04:00
= sprite_icon('clock')
2019-01-28 07:12:30 -05:00
= pluralize @pipeline.total_size, "job"
2019-03-06 03:34:38 -05:00
= @pipeline.ref_text
2019-01-28 07:12:30 -05:00
- if @pipeline.duration
in
= time_interval_in_words(@pipeline.duration)
- if @pipeline.queued_duration
= "(queued for #{time_interval_in_words(@pipeline.queued_duration)})"
2018-07-20 02:15:14 -04:00
2019-02-20 16:58:54 -05:00
.well-segment.qa-pipeline-badges
2018-12-05 16:36:18 -05:00
.icon-container
= sprite_icon('flag')
2019-12-13 19:08:27 -05:00
- if @pipeline.child?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-child.badge.badge-pill.gl-badge.sm.badge-primary.has-tooltip{ title: s_("Pipelines|This is a child pipeline within the parent pipeline") }
2019-12-13 19:08:27 -05:00
= s_('Pipelines|Child pipeline')
= surround '(', ')' do
= link_to s_('Pipelines|parent'), pipeline_path(@pipeline.triggered_by_pipeline), class: 'text-white text-underline'
2018-12-05 16:36:18 -05:00
- if @pipeline.latest?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-url-latest.badge.badge-pill.gl-badge.sm.badge-success.has-tooltip{ title: _("Latest pipeline for the most recent commit on this branch") }
2018-12-05 16:36:18 -05:00
latest
2021-01-26 01:09:07 -05:00
- if @pipeline.merge_train_pipeline?
%span.js-pipeline-url-train.badge.badge-pill.gl-badge.sm.badge-info.has-tooltip{ title: _("This is a merge train pipeline") }
train
2018-12-05 16:36:18 -05:00
- if @pipeline.has_yaml_errors?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-url-yaml.badge.badge-pill.gl-badge.sm.badge-danger.has-tooltip{ title: @pipeline.yaml_errors }
2018-12-05 16:36:18 -05:00
yaml invalid
- if @pipeline.failure_reason?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-url-failure.badge.badge-pill.gl-badge.sm.badge-danger.has-tooltip{ title: @pipeline.failure_reason }
2018-12-05 16:36:18 -05:00
error
- if @pipeline.auto_devops_source?
2020-07-29 08:09:45 -04:00
- popover_title_text = html_escape(_('This pipeline makes use of a predefined CI/CD configuration enabled by %{b_open}Auto DevOps.%{b_close}')) % { b_open: '<b>'.html_safe, b_close: '</b>'.html_safe }
2018-12-05 16:36:18 -05:00
- popover_content_url = help_page_path('topics/autodevops/index.md')
- popover_content_text = _('Learn more about Auto DevOps')
2021-01-15 10:10:31 -05:00
%a.js-pipeline-url-autodevops.badge.badge-pill.gl-badge.sm.badge-info.autodevops-badge{ href: "#", tabindex: "0", role: "button", data: { container: "body",
2018-12-05 16:36:18 -05:00
toggle: "popover",
placement: "top",
html: "true",
2020-10-27 11:08:39 -04:00
triggers: "focus",
2020-09-30 02:09:47 -04:00
title: "<div class='gl-font-weight-normal gl-line-height-normal'>#{popover_title_text}</div>",
content: "<a href='#{popover_content_url}' target='_blank' rel='noopener noreferrer nofollow'>#{popover_content_text}</a>",
2018-12-05 16:36:18 -05:00
} }
Auto DevOps
2019-03-06 03:34:38 -05:00
- if @pipeline.detached_merge_request_pipeline?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-url-mergerequest.badge.badge-pill.gl-badge.sm.badge-info.has-tooltip{ title: _('Pipelines for merge requests are configured. A detached pipeline runs in the context of the merge request, and not against the merged result. Learn more in the documentation for Pipelines for Merged Results.') }
2019-03-06 03:34:38 -05:00
detached
2018-12-05 16:36:18 -05:00
- if @pipeline.stuck?
2021-01-15 10:10:31 -05:00
%span.js-pipeline-url-stuck.badge.badge-pill.gl-badge.sm.badge-warning
2018-12-05 16:36:18 -05:00
stuck
2018-08-02 07:48:59 -04:00
.well-segment.branch-info
.icon-container.commit-icon
= custom_icon("icon_commit")
2020-11-09 22:09:04 -05:00
= link_to commit.short_id, project_commit_path(@project, @pipeline.sha), class: "commit-sha"
2019-10-09 08:06:13 -04:00
= clipboard_button(text: @pipeline.sha, title: _("Copy commit SHA"))
2019-10-17 17:06:41 -04:00
.well-segment.related-merge-request-info
.icon-container
= sprite_icon("git-merge")
%span.related-merge-requests
2020-01-30 04:08:55 -05:00
%span.js-truncated-mr-list
= @pipeline.all_related_merge_request_text(limit: 1)
- if @pipeline.has_many_merge_requests?
= link_to("#", class: "js-toggle-mr-list") do
%span.text-expander
= sprite_icon('ellipsis_h', size: 12)
%span.js-full-mr-list.hide
= @pipeline.all_related_merge_request_text