summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-16 10:14:12 -0500
committerUnknwon <u@gogs.io>2015-11-16 10:14:12 -0500
commit134d8e7681d098b8b37d4ee47cea0e03d643965d (patch)
treebd14c2318fce4b282687d41e77fba3b268bd4bc1 /routers/repo/issue.go
parentc9b65f0fdcaebb23cc6071e86881f623e6b6a3e7 (diff)
downloadgitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.tar.gz
gitea-134d8e7681d098b8b37d4ee47cea0e03d643965d.zip
work on #1961
Diffstat (limited to 'routers/repo/issue.go')
-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 eee300d4c1..639117b8c3 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -59,6 +59,7 @@ func Issues(ctx *middleware.Context) {
if isPullList {
ctx.Data["Title"] = ctx.Tr("repo.pulls")
ctx.Data["PageIsPullList"] = true
+ ctx.Data["HasForkedRepo"] = ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)
} else {
ctx.Data["Title"] = ctx.Tr("repo.issues")
ctx.Data["PageIsIssueList"] = true