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/wiki | |
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/wiki')
-rw-r--r-- | templates/repo/wiki/new.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/pages.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/revision.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/start.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/wiki/new.tmpl b/templates/repo/wiki/new.tmpl index 26c19c0a43..194e40122b 100644 --- a/templates/repo/wiki/new.tmpl +++ b/templates/repo/wiki/new.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository wiki new"> +<div role="main" aria-label="{{.Title}}" class="page-content repository wiki new"> {{template "repo/header" .}} <div class="ui container"> {{template "base/alert" .}} diff --git a/templates/repo/wiki/pages.tmpl b/templates/repo/wiki/pages.tmpl index 3c53fe1e8a..ea5b9709c4 100644 --- a/templates/repo/wiki/pages.tmpl +++ b/templates/repo/wiki/pages.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository wiki pages"> +<div role="main" aria-label="{{.Title}}" class="page-content repository wiki pages"> {{template "repo/header" .}} <div class="ui container"> <h2 class="ui header df ac sb"> diff --git a/templates/repo/wiki/revision.tmpl b/templates/repo/wiki/revision.tmpl index b49441f4eb..c5256ab534 100644 --- a/templates/repo/wiki/revision.tmpl +++ b/templates/repo/wiki/revision.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository wiki revisions"> +<div role="main" aria-label="{{.Title}}" class="page-content repository wiki revisions"> {{template "repo/header" .}} {{$title := .title}} <div class="ui container"> diff --git a/templates/repo/wiki/start.tmpl b/templates/repo/wiki/start.tmpl index e353fcab41..c98ee6f3c9 100644 --- a/templates/repo/wiki/start.tmpl +++ b/templates/repo/wiki/start.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository wiki start"> +<div role="main" aria-label="{{.Title}}" class="page-content repository wiki start"> {{template "repo/header" .}} <div class="ui container"> <div class="ui center segment"> diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 3cd6617dd9..b5e65dffcf 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content repository wiki view"> +<div role="main" aria-label="{{.Title}}" class="page-content repository wiki view"> {{template "repo/header" .}} {{$title := .title}} <div class="ui container"> |