diff options
author | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-04-20 19:03:47 +0300 |
---|---|---|
committer | Oswaldo Ferreira <oswaldo@gitlab.com> | 2018-04-24 00:14:49 +0300 |
commit | b0859a523f680a3c57ead290b505071b98ec4171 (patch) | |
tree | 5802a3fe7f29eff6cb7c64c6d1e098b64aa1c6c5 /app/helpers | |
parent | 54b97f9ca55eded812b3fa1de424158c4c6f2614 (diff) |
[Backport] Burndown chart for group milestone
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/gitlab_routing_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/gitlab_routing_helper.rb b/app/helpers/gitlab_routing_helper.rb index 7f3c118c7ab..40073f714ee 100644 --- a/app/helpers/gitlab_routing_helper.rb +++ b/app/helpers/gitlab_routing_helper.rb @@ -81,6 +81,14 @@ module GitlabRoutingHelper end end + def edit_milestone_path(entity, *args) + if entity.parent.is_a?(Group) + edit_group_milestone_path(entity.parent, entity, *args) + else + edit_project_milestone_path(entity.parent, entity, *args) + end + end + def toggle_subscription_path(entity, *args) if entity.is_a?(Issue) toggle_subscription_project_issue_path(entity.project, entity) |