From 86dbda0b42d05caf11d5c6d040f18dfbcc742e04 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Jul 2015 16:42:47 +0800 Subject: UI: basci issue list without filters - fix isRead check - fix paging --- cmd/web.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index db1bf98a..b391d656 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -416,14 +416,18 @@ func runWeb(ctx *cli.Context) { m.Post("/:index/milestone", repo.UpdateIssueMilestone) m.Post("/:index/assignee", repo.UpdateAssignee) m.Get("/:index/attachment/:id", repo.IssueGetAttachment) - m.Post("/labels/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel) - m.Post("/labels/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) - m.Post("/labels/delete", repo.DeleteLabel) - m.Get("/milestones/new", repo.NewMilestone) - m.Post("/milestones/new", bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost) - m.Get("/milestones/:index/edit", repo.UpdateMilestone) - m.Post("/milestones/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.UpdateMilestonePost) - m.Get("/milestones/:index/:action", repo.UpdateMilestone) + }) + m.Group("/labels", func() { + m.Post("/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel) + m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) + m.Post("/delete", repo.DeleteLabel) + }) + m.Group("/milestones", func() { + m.Get("/new", repo.NewMilestone) + m.Post("/new", bindIgnErr(auth.CreateMilestoneForm{}), repo.NewMilestonePost) + m.Get("/:index/edit", repo.UpdateMilestone) + m.Post("/:index/edit", bindIgnErr(auth.CreateMilestoneForm{}), repo.UpdateMilestonePost) + m.Get("/:index/:action", repo.UpdateMilestone) }) m.Post("/comment/:action", repo.Comment) @@ -440,7 +444,7 @@ func runWeb(ctx *cli.Context) { m.Get("/releases", middleware.RepoRef(), repo.Releases) m.Get("/issues", repo.Issues) m.Get("/issues/:index", repo.ViewIssue) - m.Get("/issues/milestones", repo.Milestones) + m.Get("/milestones", repo.Milestones) m.Get("/pulls", repo.Pulls) m.Get("/branches", repo.Branches) m.Get("/archive/*", repo.Download) -- cgit v1.2.3