diff options
author | Unknwon <u@gogs.io> | 2015-07-24 16:42:47 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-07-24 16:42:47 +0800 |
commit | 86dbda0b42d05caf11d5c6d040f18dfbcc742e04 (patch) | |
tree | ce814cc15a756f59a62df9f9edc24220a98482c9 /cmd | |
parent | 4447a20f872776123c42d5b8ca987c114fb4b80b (diff) | |
download | gitea-86dbda0b42d05caf11d5c6d040f18dfbcc742e04.tar.gz gitea-86dbda0b42d05caf11d5c6d040f18dfbcc742e04.zip |
UI: basci issue list without filters
- fix isRead check
- fix paging
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/cmd/web.go b/cmd/web.go index db1bf98af4..b391d6564a 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) |