diff --git a/routers/repo/branch.go b/routers/repo/branch.go index 708b33be09bd..3bd4a75bfb3c 100644 --- a/routers/repo/branch.go +++ b/routers/repo/branch.go @@ -39,6 +39,7 @@ func Branches(ctx *context.Context) { ctx.Data["Title"] = "Branches" ctx.Data["IsRepoToolbarBranches"] = true ctx.Data["DefaultBranch"] = ctx.Repo.Repository.DefaultBranch + ctx.Data["AllowsPulls"] = ctx.Repo.Repository.AllowsPulls() ctx.Data["IsWriter"] = ctx.Repo.CanWrite(models.UnitTypeCode) ctx.Data["IsMirror"] = ctx.Repo.Repository.IsMirror ctx.Data["PageIsViewCode"] = true diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index a2fb5c20697f..2028797bdb9b 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -63,7 +63,7 @@