summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-04 22:24:04 +0800
committerUnknwon <u@gogs.io>2015-08-04 22:24:04 +0800
commit9311a9858ae4dd10450370da8a93c37c1dad798b (patch)
treef394b405e8973b917d2770b404cf8ede39dc73c0 /cmd
parente7f015db8cd1d16fc630e14afe88763a5ca787a8 (diff)
downloadgitea-9311a9858ae4dd10450370da8a93c37c1dad798b.tar.gz
gitea-9311a9858ae4dd10450370da8a93c37c1dad798b.zip
milestone: pagination
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index c51ba3e890..7b67388c21 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() {