forked from forgejo/forgejo
Add main landmark to templates and adjust titles (#22670)
* Add main aria landmark to templates * Adjust some titles to improve understanding of location in navigation Contributed by @Forgejo
This commit is contained in:
parent
1e0e79dcbf
commit
15c035775a
171 changed files with 177 additions and 176 deletions
|
@ -31,7 +31,7 @@ const (
|
|||
|
||||
// ProtectedBranchRules render the page to protect the repository
|
||||
func ProtectedBranchRules(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings")
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings.branches")
|
||||
ctx.Data["PageIsSettingsBranches"] = true
|
||||
|
||||
rules, err := git_model.FindRepoProtectedBranchRules(ctx, ctx.Repo.Repository.ID)
|
||||
|
@ -46,7 +46,7 @@ func ProtectedBranchRules(ctx *context.Context) {
|
|||
|
||||
// SetDefaultBranchPost set default branch
|
||||
func SetDefaultBranchPost(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings")
|
||||
ctx.Data["Title"] = ctx.Tr("repo.settings.branches.update_default_branch")
|
||||
ctx.Data["PageIsSettingsBranches"] = true
|
||||
|
||||
repo := ctx.Repo.Repository
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue