1
0
Fork 0
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

(cherry picked from commit e6a557cae3)
This commit is contained in:
Felipe Leopoldo Sologuren Gutiérrez 2023-02-01 19:56:10 -03:00 committed by Loïc Dachary
parent 54eb9456be
commit fb45bf231e
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2
158 changed files with 164 additions and 163 deletions

View file

@ -29,7 +29,7 @@ import (
// ProtectedBranch render the page to protect the repository
func ProtectedBranch(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.settings")
ctx.Data["Title"] = ctx.Tr("repo.settings.branches")
ctx.Data["PageIsSettingsBranches"] = true
protectedBranches, err := git_model.GetProtectedBranches(ctx.Repo.Repository.ID)
@ -61,7 +61,7 @@ func ProtectedBranch(ctx *context.Context) {
// ProtectedBranchPost response for protect for a branch of a repository
func ProtectedBranchPost(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("repo.settings")
ctx.Data["Title"] = ctx.Tr("repo.settings.protected_branch")
ctx.Data["PageIsSettingsBranches"] = true
repo := ctx.Repo.Repository