debian-mirror-gitlab/app/views/projects/pipeline_schedules/_pipeline_schedule.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
2.7 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- if pipeline_schedule
%tr.pipeline-schedule-table-row
%td
= pipeline_schedule.description
2022-10-11 01:57:18 +05:30
%td.branch-name-cell.gl-text-truncate
2022-05-07 20:08:51 +05:30
- if pipeline_schedule.for_tag?
2022-11-25 23:54:43 +05:30
= sprite_icon('tag', size: 12, css_class: 'gl-vertical-align-middle!' )
2022-05-07 20:08:51 +05:30
- else
2022-11-25 23:54:43 +05:30
= sprite_icon('fork', size: 12, css_class: 'gl-vertical-align-middle!')
2017-09-10 17:25:29 +05:30
- if pipeline_schedule.ref.present?
2022-05-07 20:08:51 +05:30
= link_to pipeline_schedule.ref_for_display, project_ref_path(@project, pipeline_schedule.ref_for_display), class: "ref-name"
2017-08-17 22:00:37 +05:30
%td
- if pipeline_schedule.last_pipeline
.status-icon-container{ class: "ci-status-icon-#{pipeline_schedule.last_pipeline.status}" }
2017-09-10 17:25:29 +05:30
= link_to project_pipeline_path(@project, pipeline_schedule.last_pipeline.id) do
2017-08-17 22:00:37 +05:30
= ci_icon_for_status(pipeline_schedule.last_pipeline.status)
%span ##{pipeline_schedule.last_pipeline.id}
- else
2017-09-10 17:25:29 +05:30
= s_("PipelineSchedules|None")
2022-10-11 01:57:18 +05:30
%td.gl-text-gray-500{ 'data-testid': 'next-run-cell' }
2017-09-10 17:25:29 +05:30
- if pipeline_schedule.active? && pipeline_schedule.next_run_at
2017-08-17 22:00:37 +05:30
= time_ago_with_tooltip(pipeline_schedule.real_next_run)
- else
2017-09-10 17:25:29 +05:30
= s_("PipelineSchedules|Inactive")
2017-08-17 22:00:37 +05:30
%td
- if pipeline_schedule.owner
2022-11-25 23:54:43 +05:30
= render Pajamas::AvatarComponent.new(pipeline_schedule.owner, size: 24, class: "gl-mr-2")
2017-08-17 22:00:37 +05:30
= link_to user_path(pipeline_schedule.owner) do
= pipeline_schedule.owner&.name
%td
2018-11-08 19:23:39 +05:30
.float-right.btn-group
2018-03-17 18:26:18 +05:30
- if can?(current_user, :play_pipeline_schedule, pipeline_schedule)
2021-11-11 11:23:49 +05:30
= link_to play_pipeline_schedule_path(pipeline_schedule), method: :post, title: _('Play'), class: 'btn gl-button btn-default btn-icon' do
2020-07-28 23:09:34 +05:30
= sprite_icon('play')
2018-03-17 18:26:18 +05:30
- if can?(current_user, :take_ownership_pipeline_schedule, pipeline_schedule)
2022-08-27 11:52:29 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-take-ownership-button has-tooltip', title: s_('PipelineSchedule|Take ownership to edit'), data: { url: take_ownership_pipeline_schedule_path(pipeline_schedule) } }) do
2017-09-10 17:25:29 +05:30
= s_('PipelineSchedules|Take ownership')
- if can?(current_user, :update_pipeline_schedule, pipeline_schedule)
2021-04-17 20:07:23 +05:30
= link_to edit_pipeline_schedule_path(pipeline_schedule), title: _('Edit'), class: 'btn gl-button btn-default btn-icon' do
2020-10-24 23:57:45 +05:30
= sprite_icon('pencil')
2017-08-17 22:00:37 +05:30
- if can?(current_user, :admin_pipeline_schedule, pipeline_schedule)
2022-04-04 11:22:00 +05:30
= link_to pipeline_schedule_path(pipeline_schedule), title: _('Delete'), method: :delete, class: 'btn gl-button btn-danger btn-icon', aria: { label: _('Delete pipeline schedule') }, data: { confirm: _("Are you sure you want to delete this pipeline schedule?"), confirm_btn_variant: 'danger' } do
2020-10-24 23:57:45 +05:30
= sprite_icon('remove')