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

80 lines
3.9 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
.commit-box
%h3.commit-title
= markdown(commit.title, pipeline: :single_line)
- if commit.description.present?
%pre.commit-description<
= preserve(markdown(commit.description, pipeline: :single_line))
2016-06-02 11:05:42 +05:30
2018-11-18 11:00:15 +05:30
.info-well
2019-02-02 18:00:53 +05:30
.well-segment.pipeline-info
2020-10-24 23:57:45 +05:30
.icon-container.gl-vertical-align-text-bottom
= sprite_icon('clock')
2019-02-02 18:00:53 +05:30
= pluralize @pipeline.total_size, "job"
2019-07-07 11:18:12 +05:30
= @pipeline.ref_text
2019-02-02 18:00:53 +05:30
- 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
2019-07-07 11:18:12 +05:30
.well-segment.qa-pipeline-badges
2019-02-15 15:39:39 +05:30
.icon-container
= sprite_icon('flag')
2020-01-01 13:55:28 +05:30
- if @pipeline.child?
%span.js-pipeline-child.badge.badge-primary.has-tooltip{ title: s_("Pipelines|This is a child pipeline within the parent pipeline") }
= s_('Pipelines|Child pipeline')
= surround '(', ')' do
= link_to s_('Pipelines|parent'), pipeline_path(@pipeline.triggered_by_pipeline), class: 'text-white text-underline'
2019-02-15 15:39:39 +05:30
- if @pipeline.latest?
2019-12-04 20:38:33 +05:30
%span.js-pipeline-url-latest.badge.badge-success.has-tooltip{ title: _("Latest pipeline for the most recent commit on this branch") }
2019-02-15 15:39:39 +05:30
latest
- if @pipeline.has_yaml_errors?
%span.js-pipeline-url-yaml.badge.badge-danger.has-tooltip{ title: @pipeline.yaml_errors }
yaml invalid
- if @pipeline.failure_reason?
%span.js-pipeline-url-failure.badge.badge-danger.has-tooltip{ title: @pipeline.failure_reason }
error
- if @pipeline.auto_devops_source?
2020-10-24 23:57:45 +05:30
- 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 }
2019-02-15 15:39:39 +05:30
- popover_content_url = help_page_path('topics/autodevops/index.md')
- popover_content_text = _('Learn more about Auto DevOps')
%a.js-pipeline-url-autodevops.badge.badge-info.autodevops-badge{ href: "#", tabindex: "0", role: "button", data: { container: "body",
toggle: "popover",
placement: "top",
html: "true",
trigger: "focus",
2021-01-03 14:25:43 +05:30
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>",
2019-02-15 15:39:39 +05:30
} }
Auto DevOps
2019-07-07 11:18:12 +05:30
- if @pipeline.detached_merge_request_pipeline?
2019-12-21 20:55:43 +05:30
%span.js-pipeline-url-mergerequest.badge.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-07-07 11:18:12 +05:30
detached
2019-02-15 15:39:39 +05:30
- if @pipeline.stuck?
%span.js-pipeline-url-stuck.badge.badge-warning
stuck
2018-11-18 11:00:15 +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"
2021-01-03 14:25:43 +05:30
= link_to("#", class: "js-details-expand d-none d-md-inline") do
2018-11-18 11:00:15 +05:30
%span.text-expander
= sprite_icon('ellipsis_h', size: 12)
%span.js-details-content.hide
= link_to @pipeline.sha, project_commit_path(@project, @pipeline.sha), class: "commit-sha commit-hash-full"
2019-12-21 20:55:43 +05:30
= clipboard_button(text: @pipeline.sha, title: _("Copy commit SHA"))
.well-segment.related-merge-request-info
.icon-container
= sprite_icon("git-merge")
%span.related-merge-requests
2020-03-13 15:44:24 +05:30
%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