diff options
-rw-r--r-- | conf/locale/locale_en-US.ini | 9 | ||||
-rw-r--r-- | templates/base/navbar.tmpl | 8 | ||||
-rw-r--r-- | templates/ng/base/footer.tmpl | 8 | ||||
-rw-r--r-- | templates/ng/base/header.tmpl | 8 | ||||
-rw-r--r-- | templates/user/dashboard/dashboard.tmpl | 1 |
5 files changed, 22 insertions, 12 deletions
diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index c2fec7d9e8..0a7e3591c6 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -24,6 +24,7 @@ captcha = Captcha repository = Repository organization = Organization mirror = Mirror +new = New new_repo = New Repository new_migrate = New Migration new_fork = New Fork Repository @@ -38,6 +39,7 @@ pull_requests = Pull Requests issues = Issues cancel = Cancel +more = More [install] install = Installation @@ -724,3 +726,10 @@ months = %d months %s years = %d years %s raw_seconds = seconds raw_minutes = minutes + + +[footer] +github = GitHub +twitter = Twitter +gplus = Google+ +weibo = Weibo diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl index b69e9dc4a0..a3055f0fa0 100644 --- a/templates/base/navbar.tmpl +++ b/templates/base/navbar.tmpl @@ -22,16 +22,16 @@ </div> </form> --> {{end}} - <a id="nav-out" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/logout/"><i class="fa fa-power-off fa-lg"></i></a> + <a id="nav-out" class="nav-item navbar-right navbar-btn btn btn-danger" href="{{AppSubUrl}}/user/logout/"><i class="fa fa-power-off fa-lg"></i><span class="sr-only">Sign Out</span></a> <a id="nav-avatar" class="nav-item navbar-right{{if .PageIsUserProfile}} active{{end}}" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}"> <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/> </a> - <a class="navbar-right nav-item{{if .PageIsUserSetting}} active{{end}}" href="{{AppSubUrl}}/user/settings" data-toggle="tooltip" data-placement="bottom" title="Settings"><i class="fa fa-cogs fa-lg"></i></a> + <a class="navbar-right nav-item{{if .PageIsUserSetting}} active{{end}}" href="{{AppSubUrl}}/user/settings" data-toggle="tooltip" data-placement="bottom" title="Settings"><i class="fa fa-cogs fa-lg"></i><span class="sr-only">Settings</span></a> {{if .IsAdmin}} - <a class="navbar-right nav-item{{if .PageIsAdmin}} active{{end}}" href="{{AppSubUrl}}/admin" data-toggle="tooltip" data-placement="bottom" title="Admin"><i class="fa fa-gear fa-lg"></i></a> + <a class="navbar-right nav-item{{if .PageIsAdmin}} active{{end}}" href="{{AppSubUrl}}/admin" data-toggle="tooltip" data-placement="bottom" title="Admin"><i class="fa fa-gear fa-lg"></i><span class="sr-only">Admin</span></a> {{end}} <div class="navbar-right nav-item pull-right{{if .PageIsNewRepo}} active{{end}}" id="nav-repo-new" data-toggle="tooltip" data-placement="bottom" title="New Repo"> - <button type="button" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square fa-lg"></i></button> + <button type="button" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square fa-lg"></i><span class="sr-only">New</span></button> <div class="dropdown-menu"> <ul class="list-unstyled"> <li><a href="{{AppSubUrl}}/repo/create"><i class="fa fa-book"></i>Repository</a></li> 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> diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 02c0102e42..92bf22d429 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -17,6 +17,7 @@ <li class="drop right"> <button class="btn btn-green text-bold" id="dashboard-new-repo"> <i class="octicon octicon-plus"></i> + <span class="sr-only">{{.i18n.Tr "new"}}</span> </button> <ul class="menu menu-vertical drop-down" id="dashboard-new-repo-menu"> <li><a href="{{AppSubUrl}}/repo/create"><i class="octicon octicon-repo-create"></i>{{.i18n.Tr "new_repo"}}</a></li> |