summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-07-06 22:03:52 +0100
committerGitHub <noreply@github.com>2022-07-06 22:03:52 +0100
commita704e4b547e9ef67ac0e8ddd49cc2f1d3d567d1f (patch)
treebe681497cac261d50ed17e74ba39eef3fd78321f /templates/base
parent354bfbe77948b9eaca372ab314734dccaf6f8d49 (diff)
downloadgitea-a704e4b547e9ef67ac0e8ddd49cc2f1d3d567d1f.tar.gz
gitea-a704e4b547e9ef67ac0e8ddd49cc2f1d3d567d1f.zip
Fix toolip on mobile notification bell (#20270)
Unfortunately there is a bug in #20108 where the translation call was not updated to use `.locale` from `.i18n`. This PR updates the template to use `.locale`. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head_navbar.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index 91529dc163..b9e9ee7cf8 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -8,7 +8,7 @@
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}" aria-hidden="true">
</a>
{{if .IsSigned}}
- <a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.i18n.Tr "notifications"}}'>
+ <a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.locale.Tr "notifications"}}'>
<span class="text black">
<span class="fitted">{{svg "octicon-bell"}}</span>
<span class="ui red label mini{{if not $notificationUnreadCount}} hidden{{end}} notification_count">