Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-04-20 19:03:47 +0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-04-24 00:14:49 +0300
commitb0859a523f680a3c57ead290b505071b98ec4171 (patch)
tree5802a3fe7f29eff6cb7c64c6d1e098b64aa1c6c5 /app
parent54b97f9ca55eded812b3fa1de424158c4c6f2614 (diff)
[Backport] Burndown chart for group milestone
Diffstat (limited to 'app')
-rw-r--r--app/helpers/gitlab_routing_helper.rb8
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)