From 9311a9858ae4dd10450370da8a93c37c1dad798b Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 4 Aug 2015 22:24:04 +0800 Subject: milestone: pagination --- cmd/web.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index c51ba3e8..7b67388c 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -427,9 +427,9 @@ func runWeb(ctx *cli.Context) { m.Group("/milestones", func() { m.Get("/new", repo.NewMilestone) m.Post("/new", bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost) - m.Get("/:index/edit", repo.UpdateMilestone) + m.Get("/:index/edit", repo.MilestoneActions) m.Post("/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.UpdateMilestonePost) - m.Get("/:index/:action", repo.UpdateMilestone) + m.Get("/:index/:action", repo.MilestoneActions) }, reqRepoAdmin) m.Post("/comment/:action", repo.Comment) @@ -452,7 +452,6 @@ func runWeb(ctx *cli.Context) { m.Get("/branches", repo.Branches) m.Get("/archive/*", repo.Download) m.Get("/pulls2/", repo.PullRequest2) - m.Get("/milestone2/", repo.Milestones2) m.Head("/hooks/trigger", repo.TriggerHook) m.Group("", func() { -- cgit v1.2.3