1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Fix incorrect ref usages (#33301)

Fix #33297

By the way, improve some locales
This commit is contained in:
wxiaoguang
2025-01-16 21:52:21 +08:00
committed by GitHub
parent ab347fd0f7
commit cfc6e21f06
6 changed files with 24 additions and 22 deletions

View File

@@ -37,7 +37,6 @@ const (
// Branches render repository branch page
func Branches(ctx *context.Context) {
ctx.Data["Title"] = "Branches"
ctx.Data["IsRepoToolbarBranches"] = true
ctx.Data["AllowsPulls"] = ctx.Repo.Repository.AllowsPulls(ctx)
ctx.Data["IsWriter"] = ctx.Repo.CanWrite(unit.TypeCode)
ctx.Data["IsMirror"] = ctx.Repo.Repository.IsMirror