summaryrefslogtreecommitdiffstats
path: root/templates/ng
diff options
context:
space:
mode:
authorNolan Darilek <nolan@thewordnerd.info>2015-03-14 09:55:04 -0500
committerNolan Darilek <nolan@thewordnerd.info>2015-03-14 09:55:04 -0500
commit37ab32b6139504640a843b0ddd6204c0ca5880c0 (patch)
tree6a9afb97d083dfe658bb76a05848f275102f4842 /templates/ng
parentfd07de575185dd6d683c3e2ad11063965c1345b5 (diff)
downloadgitea-37ab32b6139504640a843b0ddd6204c0ca5880c0.tar.gz
gitea-37ab32b6139504640a843b0ddd6204c0ca5880c0.zip
Various accessibility fixes, mostly labeling icons.
Diffstat (limited to 'templates/ng')
-rw-r--r--templates/ng/base/footer.tmpl8
-rw-r--r--templates/ng/base/header.tmpl8
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/ng/base/footer.tmpl b/templates/ng/base/footer.tmpl
index 89836fca23..7a4e9e062e 100644
--- a/templates/ng/base/footer.tmpl
+++ b/templates/ng/base/footer.tmpl
@@ -5,10 +5,10 @@
{{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p>
<div class="right" id="footer-links">
- <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i></a>
- <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i></a>
- <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i></a>
- <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i></a>
+ <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i><span class="sr-only">{{.i18n.Tr "github"}}</span></a>
+ <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">{{.i18n.Tr "twitter"}}</span></a>
+ <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i><span class="sr-only">{{.i18n.Tr "gplus"}}</span></a>
+ <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">{{.i18n.Tr "Weibo"}}</span></a>
<div id="footer-lang" class="inline drop drop-top">{{.i18n.Tr "language"}}
<div class="drop-down">
<ul class="menu menu-vertical switching-list">
diff --git a/templates/ng/base/header.tmpl b/templates/ng/base/header.tmpl
index da9218368d..d76564123d 100644
--- a/templates/ng/base/header.tmpl
+++ b/templates/ng/base/header.tmpl
@@ -13,18 +13,18 @@
{{if .IsSigned}}
<li class="right" id="header-nav-sign-out">
- <a href="{{AppSubUrl}}/user/logout" title="{{.i18n.Tr "sign_out"}}"><i class="octicon octicon-sign-out"></i></a>
+ <a href="{{AppSubUrl}}/user/logout" title="{{.i18n.Tr "sign_out"}}"><i class="octicon octicon-sign-out"></i><span class="sr-only">{{.i18n.Tr "sign_out"}}</span></a>
</li>
<li class="right {{if .PageIsUserSettings}}current{{end}}">
- <a href="{{AppSubUrl}}/user/settings" title="{{.i18n.Tr "account_settings"}}"><i class="octicon octicon-settings"></i></a>
+ <a href="{{AppSubUrl}}/user/settings" title="{{.i18n.Tr "account_settings"}}"><i class="octicon octicon-settings"></i><span class="sr-only">{{.i18n.Tr "account_settings"}}</span></a>
</li>
{{if .IsAdmin}}
<li class="right {{if .PageIsAdmin}}current{{end}}">
- <a href="{{AppSubUrl}}/admin" title="{{.i18n.Tr "admin_panel"}}"><i class="octicon octicon-circuit-board"></i></a>
+ <a href="{{AppSubUrl}}/admin" title="{{.i18n.Tr "admin_panel"}}"><i class="octicon octicon-circuit-board"><span class="sr-only">{{.i18n.Tr "admin_panel"}}</span></i></a>
</li>
{{end}}
<li class="right down">
- <a href="#"><i class="octicon octicon-plus"></i></a>
+ <a href="#"><i class="octicon octicon-plus"></i><span class="sr-only">{{.i18n.Tr "more"}}</span></a>
<ul class="menu menu-down" id="header-new-repo-menu">
<li><a href="{{AppSubUrl}}/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li>
<li><a href="{{AppSubUrl}}/repo/migrate"><i class="octicon octicon-repo-clone"></i>{{.i18n.Tr "new_migrate"}}</a></li>