From 2580e7b57e60011766cf58a6c7cce421e193a668 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Thu, 3 Dec 2015 02:15:00 +0100 Subject: 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. --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') 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() { -- cgit v1.2.3