|
|
|
@ -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 |
|
|
|
|