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