BigW Consortium Gitlab

index.html.haml 923 Bytes
Newer Older
Phil Hughes committed
1
- breadcrumb_title _("Schedules")
2

3
- content_for :page_specific_javascripts do
4 5
  = webpack_bundle_tag 'common_vue'
  = webpack_bundle_tag 'schedules_index'
6 7

- @no_container = true
8
- page_title _("Pipeline Schedules")
9

10
%div{ class: container_class }
11
  #pipeline-schedules-callout{ data: { docs_url: help_page_path('user/project/pipelines/schedules') } }
12 13 14 15
  .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

16
    - if can?(current_user, :create_pipeline_schedule, @project)
17
      .nav-controls
18 19
        = link_to new_project_pipeline_schedule_path(@project), class: 'btn btn-create' do
          %span= _('New schedule')
20 21 22 23 24 25

  - if @schedules.present?
    %ul.content-list
      = render partial: "table"
  - else
    .light-well
26
      .nothing-here-block= _("No schedules")