diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-25 17:25:20 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-26 14:23:29 +0300 |
commit | 52d59a4e5108d2ffd6f2bc543ee9aef1a87a8f14 (patch) | |
tree | f1f9b1b7e46fcd441d3cf860016473ec04baf6de /app/helpers/milestones_helper.rb | |
parent | f00bb1c29ea438be66b3766545a57b468ade37d4 (diff) |
Load milestone tabs asynchronously
Diffstat (limited to 'app/helpers/milestones_helper.rb')
-rw-r--r-- | app/helpers/milestones_helper.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb index c9e70faa52e..d46b010f535 100644 --- a/app/helpers/milestones_helper.rb +++ b/app/helpers/milestones_helper.rb @@ -115,4 +115,28 @@ module MilestonesHelper end end end + + def milestone_merge_request_path(milestone) + if @project + merge_requests_namespace_project_milestone_path(@project.namespace, @project, milestone, format: :json) + elsif @group + merge_requests_group_milestone_path(@group, milestone.safe_title, title: milestone.title, format: :json) + end + end + + def milestone_participants_path(milestone) + if @project + participants_namespace_project_milestone_path(@project.namespace, @project, milestone, format: :json) + elsif @group + participants_group_milestone_path(@group, milestone.safe_title, title: milestone.title, format: :json) + end + end + + def milestone_labels_path(milestone) + if @project + labels_namespace_project_milestone_path(@project.namespace, @project, milestone, format: :json) + elsif @group + labels_group_milestone_path(@group, milestone.safe_title, title: milestone.title, format: :json) + end + end end |