aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndré Jaenisch <Ryuno-Ki@users.noreply.github.com>2022-06-05 11:41:51 +0200
committerGitHub <noreply@github.com>2022-06-05 17:41:51 +0800
commit73382d2132f8f242245d83f66c92761e0b477b91 (patch)
tree7c3828df44117f05004feb2137d24b4073f750db
parent89a8b3e1634e37e7ab6f1a4f919827de8fcdd89f (diff)
downloadgitea-73382d2132f8f242245d83f66c92761e0b477b91.tar.gz
gitea-73382d2132f8f242245d83f66c92761e0b477b91.zip
Add alt text to logo (#19892)
The recommended way is to use the name of the organisation followed by "logo". however, since this is my first contribution, I am not entirely sure, whether this is the best approach here. The organisation is different from the organisation you can create as part of the application. Instead, it is more related to the site hosting the instance. Plus, I don't know how to best handle it when the logo image is swapped out. Therefore, I use plain "Logo" and hope that the person visiting the site has enough context. Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r--options/locale/locale_en-US.ini1
-rw-r--r--templates/base/head_navbar.tmpl2
2 files changed, 2 insertions, 1 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini
index 5dfe929009..d52fe05569 100644
--- a/options/locale/locale_en-US.ini
+++ b/options/locale/locale_en-US.ini
@@ -2,6 +2,7 @@ home = Home
dashboard = Dashboard
explore = Explore
help = Help
+logo = Logo
sign_in = Sign In
sign_in_with = Sign In With
sign_out = Sign Out
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index babf244f93..37a579142c 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -1,7 +1,7 @@
<div class="ui container" id="navbar">
<div class="item brand" style="justify-content: space-between;">
<a href="{{AppSubUrl}}/" data-content="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}">
- <img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg">
+ <img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.i18n.Tr "logo"}}">
</a>
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
<i class="sidebar icon"></i>