2017-05-07 18:35:56 -04:00
- if pipeline_schedule
%tr.pipeline-schedule-table-row
%td
= pipeline_schedule.description
%td.branch-name-cell
= icon('code-fork')
2017-05-29 07:22:54 -04:00
- if pipeline_schedule.ref
2017-05-25 06:21:15 -04:00
= link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
2017-05-07 18:35:56 -04:00
%td
- if pipeline_schedule.last_pipeline
.status-icon-container{ class: "ci-status-icon-#{pipeline_schedule.last_pipeline.status}" }
2017-06-29 13:06:35 -04:00
= link_to project_pipeline_path(@project, pipeline_schedule.last_pipeline.id) do
2017-05-07 18:35:56 -04:00
= ci_icon_for_status(pipeline_schedule.last_pipeline.status)
2017-05-10 14:47:43 -04:00
%span ##{pipeline_schedule.last_pipeline.id}
2017-05-07 18:35:56 -04:00
- else
2017-06-12 01:36:12 -04:00
= s_("PipelineSchedules|None")
2017-05-07 18:35:56 -04:00
%td.next-run-cell
- if pipeline_schedule.active?
2017-05-23 13:32:11 -04:00
= time_ago_with_tooltip(pipeline_schedule.real_next_run)
2017-05-07 18:35:56 -04:00
- else
2017-06-12 01:36:12 -04:00
= s_("PipelineSchedules|Inactive")
2017-05-07 18:35:56 -04:00
%td
- if pipeline_schedule.owner
= image_tag avatar_icon(pipeline_schedule.owner, 20), class: "avatar s20"
= link_to user_path(pipeline_schedule.owner) do
= pipeline_schedule.owner&.name
%td
.pull-right.btn-group
- if can?(current_user, :update_pipeline_schedule, @project) && !pipeline_schedule.owned_by?(current_user)
2017-06-07 09:46:10 -04:00
= link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: s_('PipelineSchedules|Take ownership'), class: 'btn' do
= s_('PipelineSchedules|Take ownership')
2017-05-07 18:35:56 -04:00
- if can?(current_user, :update_pipeline_schedule, pipeline_schedule)
2017-06-07 09:46:10 -04:00
= link_to edit_pipeline_schedule_path(pipeline_schedule), title: _('Edit'), class: 'btn' do
2017-05-07 18:35:56 -04:00
= icon('pencil')
- if can?(current_user, :admin_pipeline_schedule, pipeline_schedule)
2017-06-07 09:46:10 -04:00
= 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
2017-05-07 18:35:56 -04:00
= icon('trash')