2017-08-18 12:19:23 -04:00
|
|
|
- breadcrumb_title _("Schedules")
|
2017-07-06 12:24:03 -04:00
|
|
|
|
2017-05-07 18:35:56 -04:00
|
|
|
- @no_container = true
|
2017-06-07 09:46:10 -04:00
|
|
|
- page_title _("Pipeline Schedules")
|
2017-07-03 05:45:40 -04:00
|
|
|
|
2017-05-07 18:35:56 -04:00
|
|
|
%div{ class: container_class }
|
2017-05-22 04:49:44 -04:00
|
|
|
#pipeline-schedules-callout{ data: { docs_url: help_page_path('user/project/pipelines/schedules') } }
|
2017-05-07 18:35:56 -04: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-07-10 12:09:16 -04:00
|
|
|
- if can?(current_user, :create_pipeline_schedule, @project)
|
2017-09-06 04:38:48 -04:00
|
|
|
.nav-controls
|
2018-09-18 05:58:22 -04:00
|
|
|
= link_to new_project_pipeline_schedule_path(@project), class: 'btn btn-success' do
|
2017-07-10 12:09:16 -04:00
|
|
|
%span= _('New schedule')
|
2017-05-07 18:35:56 -04:00
|
|
|
|
|
|
|
- if @schedules.present?
|
|
|
|
%ul.content-list
|
|
|
|
= render partial: "table"
|
|
|
|
- else
|
2018-04-13 16:51:54 -04:00
|
|
|
.card.bg-light
|
2017-06-07 09:46:10 -04:00
|
|
|
.nothing-here-block= _("No schedules")
|