2017-08-18 16:19:23 +00:00
|
|
|
- breadcrumb_title _("Schedules")
|
2017-06-07 13:46:10 +00:00
|
|
|
- page_title _("Pipeline Schedules")
|
2020-10-26 15:08:40 +00:00
|
|
|
- add_page_specific_style 'page_bundles/pipeline_schedules'
|
2017-07-03 09:45:40 +00:00
|
|
|
|
2020-11-02 09:08:35 +00:00
|
|
|
#pipeline-schedules-callout{ data: { docs_url: help_page_path('ci/pipelines/schedules'), illustration_url: image_path('illustrations/pipeline_schedule_callout.svg') } }
|
2019-09-03 09:03:35 +00:00
|
|
|
.top-area
|
|
|
|
- schedule_path_proc = ->(scope) { pipeline_schedules_path(@project, scope: scope) }
|
|
|
|
= render "tabs", schedule_path_proc: schedule_path_proc, all_schedules: @all_schedules, scope: @scope
|
2017-05-07 22:35:56 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
- if can?(current_user, :create_pipeline_schedule, @project)
|
|
|
|
.nav-controls
|
2021-03-17 12:09:19 +00:00
|
|
|
= link_to new_project_pipeline_schedule_path(@project), class: 'btn gl-button btn-confirm' do
|
2019-09-03 09:03:35 +00:00
|
|
|
%span= _('New schedule')
|
2017-05-07 22:35:56 +00:00
|
|
|
|
2019-09-03 09:03:35 +00:00
|
|
|
- if @schedules.present?
|
|
|
|
%ul.content-list
|
|
|
|
= render partial: "table"
|
|
|
|
- else
|
2021-01-15 00:10:45 +00:00
|
|
|
.card.bg-light.gl-mt-3
|
2019-09-03 09:03:35 +00:00
|
|
|
.nothing-here-block= _("No schedules")
|