diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-10 16:37:54 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-10 16:37:54 -0500 |
commit | bc8721fb6c704255fd8be9edc9372e4d17adaee9 (patch) | |
tree | 1bc335b23b84432799440bb7572942410ce00b33 /cmd | |
parent | 01ba7717838c01c719cca34d3fe446c547c9ada4 (diff) | |
download | gitea-bc8721fb6c704255fd8be9edc9372e4d17adaee9.tar.gz gitea-bc8721fb6c704255fd8be9edc9372e4d17adaee9.zip |
Finish new UI for release page
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/cmd/web.go b/cmd/web.go index 9975fa237b..ba999dbf98 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -397,14 +397,17 @@ func runWeb(*cli.Context) { }) m.Post("/comment/:action", repo.Comment) - m.Get("/releases/new", repo.NewRelease) - m.Post("/releases/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost) - m.Get("/releases/edit/:tagname", repo.EditRelease) - m.Post("/releases/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) + + m.Group("/releases", func() { + m.Get("/new", repo.NewRelease) + m.Post("/new", bindIgnErr(auth.NewReleaseForm{}), repo.NewReleasePost) + m.Get("/edit/:tagname", repo.EditRelease) + m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) + }, middleware.RepoRef()) }, reqSignIn, middleware.RepoAssignment(true)) m.Group("/:username/:reponame", func() { - m.Get("/releases", repo.Releases) + m.Get("/releases", middleware.RepoRef(), repo.Releases) m.Get("/issues", repo.Issues) m.Get("/issues/:index", repo.ViewIssue) m.Get("/issues/milestones", repo.Milestones) |