summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-16 11:20:11 -0500
committerUnknwon <u@gogs.io>2015-11-16 11:20:11 -0500
commitd370effca5c0544c4a1877e1fa9b08703feaa82d (patch)
treedab7a238668cfb1eb9144671d9a3a9f1e5033f7a /routers
parent29ed7872f807db590d9127cf9f447fb0ac34b40c (diff)
downloadgitea-d370effca5c0544c4a1877e1fa9b08703feaa82d.tar.gz
gitea-d370effca5c0544c4a1877e1fa9b08703feaa82d.zip
minor fix for #1961
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 639117b8c3..cf6687fe9c 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -494,6 +494,7 @@ func ViewIssue(ctx *middleware.Context) {
ctx.Data["PageIsPullList"] = true
ctx.Data["PageIsPullConversation"] = true
+ ctx.Data["HasForkedRepo"] = ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)
} else {
ctx.Data["PageIsIssueList"] = true
}