diff options
author | Unknwon <u@gogs.io> | 2015-11-16 11:11:59 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-16 11:11:59 -0500 |
commit | 5dc3dd17049a5c097122c6159aa7a915658c263a (patch) | |
tree | 5ab99c59f6b9cf55f4e4de5b0cf5619d95c81355 /cmd/web.go | |
parent | 134d8e7681d098b8b37d4ee47cea0e03d643965d (diff) | |
download | gitea-5dc3dd17049a5c097122c6159aa7a915658c263a.tar.gz gitea-5dc3dd17049a5c097122c6159aa7a915658c263a.zip |
fix #1960
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 095ddeb1f0..dfe47021c7 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -515,10 +515,13 @@ func runWeb(ctx *cli.Context) { m.Group("", func() { m.Get("/releases", repo.Releases) m.Get("/^:type(issues|pulls)$", repo.RetrieveLabels, repo.Issues) - m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue) m.Get("/labels/", repo.RetrieveLabels, repo.Labels) m.Get("/milestones", repo.Milestones) - }, middleware.RepoRef()) + }, middleware.RepoRef(), + func(ctx *middleware.Context) { + ctx.Data["PageIsList"] = true + }) + m.Get("/^:type(issues|pulls)$/:index", repo.ViewIssue) m.Get("/branches", repo.Branches) m.Get("/archive/*", repo.Download) |