diff options
author | Felipe Leopoldo Sologuren GutiƩrrez <fsologureng@users.noreply.github.com> | 2023-02-01 19:56:10 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 22:56:10 +0000 |
commit | 15c035775a9684cf409ec8bf8a082ae5293a03ab (patch) | |
tree | e9a015b3c435c72acf3d068db0f826d3aeedef6e /templates/repo/pulls | |
parent | 1e0e79dcbfb21971ac4cd591585672517117d4f0 (diff) | |
download | gitea-15c035775a9684cf409ec8bf8a082ae5293a03ab.tar.gz gitea-15c035775a9684cf409ec8bf8a082ae5293a03ab.zip |
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
Diffstat (limited to 'templates/repo/pulls')
-rw-r--r-- | templates/repo/pulls/commits.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/pulls/files.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/pulls/fork.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/pulls/commits.tmpl b/templates/repo/pulls/commits.tmpl index 64f377d7a4..bb113da268 100644 --- a/templates/repo/pulls/commits.tmpl +++ b/templates/repo/pulls/commits.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository view issue pull commits"> +<div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull commits"> {{template "repo/header" .}} <div class="ui container"> <div class="navbar"> diff --git a/templates/repo/pulls/files.tmpl b/templates/repo/pulls/files.tmpl index 9b24000002..e5e91bf5c3 100644 --- a/templates/repo/pulls/files.tmpl +++ b/templates/repo/pulls/files.tmpl @@ -3,7 +3,7 @@ <input type="hidden" id="repolink" value="{{$.RepoRelPath}}"> <input type="hidden" id="issueIndex" value="{{.Issue.Index}}"/> -<div class="page-content repository view issue pull files diff"> +<div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull files diff"> {{template "repo/header" .}} <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}"> <div class="navbar"> diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl index 4e20642cf6..d3e017aa03 100644 --- a/templates/repo/pulls/fork.tmpl +++ b/templates/repo/pulls/fork.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository new fork"> +<div role="main" aria-label="{{.Title}}" class="page-content repository new fork"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form" action="{{.Link}}" method="post"> |