diff options
author | Adam Strzelecki <ono@java.pl> | 2015-12-03 02:15:00 +0100 |
---|---|---|
committer | Adam Strzelecki <ono@java.pl> | 2015-12-03 02:16:18 +0100 |
commit | 2580e7b57e60011766cf58a6c7cce421e193a668 (patch) | |
tree | 53f7d3a009eabaad82897dca207da31c215f1e18 /cmd | |
parent | b83cb36049e9edb6722dc2765c06a159fa7e2a19 (diff) | |
download | gitea-2580e7b57e60011766cf58a6c7cce421e193a668.tar.gz gitea-2580e7b57e60011766cf58a6c7cce421e193a668.zip |
UI: Always show menu on repo pages
Merges repo/sidebar.tmpl with repo/header.tmpl and makes every repo page use
middleware.RepoRef() necessary to display information on this menu.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index da392a1e98..3fc39628bf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -514,11 +514,11 @@ func runWeb(ctx *cli.Context) { m.Get("/edit/:tagname", repo.EditRelease) m.Post("/edit/:tagname", bindIgnErr(auth.EditReleaseForm{}), repo.EditReleasePost) m.Post("/delete", repo.DeleteRelease) - }, reqRepoAdmin, middleware.RepoRef()) + }, reqRepoAdmin) m.Combo("/compare/*").Get(repo.CompareAndPullRequest). Post(bindIgnErr(auth.CreateIssueForm{}), repo.CompareAndPullRequestPost) - }, reqSignIn, middleware.RepoAssignment()) + }, reqSignIn, middleware.RepoAssignment(), middleware.RepoRef()) m.Group("/:username/:reponame", func() { m.Group("", func() { |