1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-06 10:25:22 +02: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