1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix 404 for external tracking issues (#1852)

* Fix 404 for external tracking issues

* Fix 404 for new/upload file
This commit is contained in:
Ethan Koenig
2017-06-03 01:56:36 -04:00
committed by Bo-Yi Wu
parent b900c04316
commit 2ec5dc1661
3 changed files with 15 additions and 6 deletions

View File

@@ -18,6 +18,10 @@ const (
// Labels render issue's labels page
func Labels(ctx *context.Context) {
MustEnableIssues(ctx)
if ctx.Written() {
return
}
ctx.Data["Title"] = ctx.Tr("repo.labels")
ctx.Data["PageIsIssueList"] = true
ctx.Data["PageIsLabels"] = true