summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue_label.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-03 01:56:36 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-03 00:56:36 -0500
commit2ec5dc1661084c099348ce75c21dde95c2c26d8d (patch)
tree89f6f0941da401aa6c3c0eb3d1542f5a26d3dc7e /routers/repo/issue_label.go
parentb900c04316145a447f70d4d222398d94d74a9fb9 (diff)
downloadgitea-2ec5dc1661084c099348ce75c21dde95c2c26d8d.tar.gz
gitea-2ec5dc1661084c099348ce75c21dde95c2c26d8d.zip
Fix 404 for external tracking issues (#1852)
* Fix 404 for external tracking issues * Fix 404 for new/upload file
Diffstat (limited to 'routers/repo/issue_label.go')
-rw-r--r--routers/repo/issue_label.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/issue_label.go b/routers/repo/issue_label.go
index 966c2c1c53..cfbc2ae3e5 100644
--- a/routers/repo/issue_label.go
+++ b/routers/repo/issue_label.go
@@ -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