diff --git a/modules/context/repo.go b/modules/context/repo.go index c61010ecb..883a826e4 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -424,6 +424,7 @@ func RepoAssignment() macaron.Handler { return } } + ctx.Data["IsForkedRepo"] = repo.IsFork // People who have push access or have forked repository can propose a new pull request. if ctx.Repo.IsWriter() || (ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)) { diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index c7c88aafc..0db8f3732 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -27,7 +27,7 @@