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)
2020-07-28 23:09:34 +05:30
= link_to play_pipeline_schedule_path(pipeline_schedule), method: :post, title: s_('Play'), class: 'btn btn-svg gl-display-flex gl-align-items-center gl-justify-content-center' do
= sprite_icon('play')
2018-03-17 18:26:18 +05:30
- if can?(current_user, :take_ownership_pipeline_schedule, pipeline_schedule)
2017-09-10 17:25:29 +05:30
= link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: s_('PipelineSchedules|Take ownership'), class: 'btn' do
= s_('PipelineSchedules|Take ownership')
- if can?(current_user, :update_pipeline_schedule, pipeline_schedule)
2020-10-24 23:57:45 +05:30
= link_to edit_pipeline_schedule_path(pipeline_schedule), title: _('Edit'), class: 'btn gl-display-flex' do
= sprite_icon('pencil')
2017-08-17 22:00:37 +05:30
- if can?(current_user, :admin_pipeline_schedule, pipeline_schedule)
2017-09-10 17:25:29 +05:30
= link_to pipeline_schedule_path(pipeline_schedule), title: _('Delete'), method: :delete, class: 'btn btn-remove', data: { confirm: _("Are you sure you want to delete this pipeline schedule?") } do
2020-10-24 23:57:45 +05:30
= sprite_icon('remove')