2017-08-17 22:00:37 +05:30
|
|
|
- if pipeline_schedule
|
|
|
|
%tr.pipeline-schedule-table-row
|
|
|
|
%td
|
|
|
|
= pipeline_schedule.description
|
|
|
|
%td.branch-name-cell
|
2018-03-17 18:26:18 +05:30
|
|
|
= sprite_icon('fork', size: 12)
|
2017-09-10 17:25:29 +05:30
|
|
|
- if pipeline_schedule.ref.present?
|
|
|
|
= link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), 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")
|
2017-08-17 22:00:37 +05:30
|
|
|
%td.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
|
2018-03-27 19:54:05 +05:30
|
|
|
= image_tag avatar_icon_for_user(pipeline_schedule.owner, 20), class: "avatar s20"
|
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)
|
2021-03-11 19:13:27 +05:30
|
|
|
= link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: s_('PipelineSchedules|Take ownership'), class: 'btn gl-button btn-default' 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)
|
2021-04-17 20:07:23 +05:30
|
|
|
= link_to pipeline_schedule_path(pipeline_schedule), title: _('Delete'), method: :delete, class: 'btn gl-button btn-danger btn-icon', data: { confirm: _("Are you sure you want to delete this pipeline schedule?") } do
|
2020-10-24 23:57:45 +05:30
|
|
|
= sprite_icon('remove')
|