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/user/auth | |
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/user/auth')
-rw-r--r-- | templates/user/auth/activate.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/change_passwd.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/finalize_openid.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/forgot_passwd.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/grant.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/grant_error.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/link_account.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/prohibit_login.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/reset_passwd.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/signin.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/signin_openid.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/signup.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/signup_openid_connect.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/signup_openid_register.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/twofa.tmpl | 2 | ||||
-rw-r--r-- | templates/user/auth/twofa_scratch.tmpl | 2 |
16 files changed, 16 insertions, 16 deletions
diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index ef72ef1e54..5a44529d18 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user activate"> +<div role="main" aria-label="{{.Title}}" class="page-content user activate"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form ignore-dirty" action="{{AppSubUrl}}/user/activate" method="post"> diff --git a/templates/user/auth/change_passwd.tmpl b/templates/user/auth/change_passwd.tmpl index b1d8c9db2c..e05f46fa6b 100644 --- a/templates/user/auth/change_passwd.tmpl +++ b/templates/user/auth/change_passwd.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> <div class="ui container"> {{template "user/auth/change_passwd_inner" .}} </div> diff --git a/templates/user/auth/finalize_openid.tmpl b/templates/user/auth/finalize_openid.tmpl index 39163b30be..2b833d9b32 100644 --- a/templates/user/auth/finalize_openid.tmpl +++ b/templates/user/auth/finalize_openid.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin"> <div class="ui container"> <div class="ui grid"> {{template "user/auth/finalize_openid_navbar" .}} diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index cd42085e28..f80e28937e 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user forgot password"> +<div role="main" aria-label="{{.Title}}" class="page-content user forgot password"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form ignore-dirty" action="{{.Link}}" method="post"> diff --git a/templates/user/auth/grant.tmpl b/templates/user/auth/grant.tmpl index 682614dee5..c906db3e0a 100644 --- a/templates/user/auth/grant.tmpl +++ b/templates/user/auth/grant.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box"> +<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box"> <div class="column seven wide"> <div class="ui middle centered raised segments"> <h3 class="ui top attached header"> diff --git a/templates/user/auth/grant_error.tmpl b/templates/user/auth/grant_error.tmpl index b775ac9b92..cfb7e8663b 100644 --- a/templates/user/auth/grant_error.tmpl +++ b/templates/user/auth/grant_error.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box {{if .IsRepo}}repository{{end}}"> +<div role="main" aria-label="{{.Title}}" class="page-content ui one column stackable center aligned page grid oauth2-authorize-application-box {{if .IsRepo}}repository{{end}}"> {{if .IsRepo}}{{template "repo/header" .}}{{end}} <div class="column seven wide"> <div class="ui middle centered raised segments"> diff --git a/templates/user/auth/link_account.tmpl b/templates/user/auth/link_account.tmpl index 4525bf551a..1e059f6814 100644 --- a/templates/user/auth/link_account.tmpl +++ b/templates/user/auth/link_account.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user link-account"> +<div role="main" aria-label="{{.Title}}" class="page-content user link-account"> <div class="ui secondary pointing tabular top attached borderless menu new-menu navbar"> <div class="new-menu-inner"> <!-- TODO handle .ShowRegistrationButton once other login bugs are fixed --> diff --git a/templates/user/auth/prohibit_login.tmpl b/templates/user/auth/prohibit_login.tmpl index d002ad7ae0..ddb16a7f26 100644 --- a/templates/user/auth/prohibit_login.tmpl +++ b/templates/user/auth/prohibit_login.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user activate"> +<div role="main" aria-label="{{.Title}}" class="page-content user activate"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form"> diff --git a/templates/user/auth/reset_passwd.tmpl b/templates/user/auth/reset_passwd.tmpl index e55eb8d330..4493778698 100644 --- a/templates/user/auth/reset_passwd.tmpl +++ b/templates/user/auth/reset_passwd.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user reset password"> +<div role="main" aria-label="{{.Title}}" class="page-content user reset password"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form ignore-dirty" action="{{.Link}}" method="post"> diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl index d6cb7cc949..b0e9ce8c74 100644 --- a/templates/user/auth/signin.tmpl +++ b/templates/user/auth/signin.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> {{template "user/auth/signin_navbar" .}} <div class="ui middle very relaxed page grid"> <div class="ui container column fluid"> diff --git a/templates/user/auth/signin_openid.tmpl b/templates/user/auth/signin_openid.tmpl index 87004eda92..7a54589fd9 100644 --- a/templates/user/auth/signin_openid.tmpl +++ b/templates/user/auth/signin_openid.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin openid"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin openid"> {{template "user/auth/signin_navbar" .}} <div class="ui container"> {{template "base/alert" .}} diff --git a/templates/user/auth/signup.tmpl b/templates/user/auth/signup.tmpl index 7b11731c80..1d03f610dc 100644 --- a/templates/user/auth/signup.tmpl +++ b/templates/user/auth/signup.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin{{if .LinkAccountMode}} icon{{end}}"> <div class="ui middle very relaxed page grid"> {{template "user/auth/signup_inner" .}} </div> diff --git a/templates/user/auth/signup_openid_connect.tmpl b/templates/user/auth/signup_openid_connect.tmpl index 36f0277b40..89a2e410e8 100644 --- a/templates/user/auth/signup_openid_connect.tmpl +++ b/templates/user/auth/signup_openid_connect.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signup"> +<div role="main" aria-label="{{.Title}}" class="page-content user signup"> {{template "user/auth/signup_openid_navbar" .}} <div class="ui container"> {{template "base/alert" .}} diff --git a/templates/user/auth/signup_openid_register.tmpl b/templates/user/auth/signup_openid_register.tmpl index e54600ec82..a490ea5a74 100644 --- a/templates/user/auth/signup_openid_register.tmpl +++ b/templates/user/auth/signup_openid_register.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signup"> +<div role="main" aria-label="{{.Title}}" class="page-content user signup"> {{template "user/auth/signup_openid_navbar" .}} <div class="ui container"> {{template "base/alert" .}} diff --git a/templates/user/auth/twofa.tmpl b/templates/user/auth/twofa.tmpl index 5c735b27b6..4002266054 100644 --- a/templates/user/auth/twofa.tmpl +++ b/templates/user/auth/twofa.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form" action="{{.Link}}" method="post"> diff --git a/templates/user/auth/twofa_scratch.tmpl b/templates/user/auth/twofa_scratch.tmpl index bb3bbaa07f..4ed7fce55e 100644 --- a/templates/user/auth/twofa_scratch.tmpl +++ b/templates/user/auth/twofa_scratch.tmpl @@ -1,5 +1,5 @@ {{template "base/head" .}} -<div class="page-content user signin"> +<div role="main" aria-label="{{.Title}}" class="page-content user signin"> <div class="ui middle very relaxed page grid"> <div class="column"> <form class="ui form" action="{{.Link}}" method="post"> |