debian-mirror-gitlab/app/helpers/routing/pipeline_schedules_helper.rb
2021-09-30 23:02:18 +05:30

29 lines
847 B
Ruby

# frozen_string_literal: true
module Routing
module PipelineSchedulesHelper
def pipeline_schedules_path(project, *args)
project_pipeline_schedules_path(project, *args)
end
def pipeline_schedule_path(schedule, *args)
project = schedule.project
project_pipeline_schedule_path(project, schedule, *args)
end
def edit_pipeline_schedule_path(schedule)
project = schedule.project
edit_project_pipeline_schedule_path(project, schedule)
end
def play_pipeline_schedule_path(schedule, *args)
project = schedule.project
play_project_pipeline_schedule_path(project, schedule, *args)
end
def take_ownership_pipeline_schedule_path(schedule, *args)
project = schedule.project
take_ownership_project_pipeline_schedule_path(project, schedule, *args)
end
end
end