Utilisation de ctx.Locale.Tr à la place de .locale.tr

références :
- https://github.com/go-gitea/gitea/pull/27227
- https://github.com/go-gitea/gitea/pull/27231 / 7960ba7e2bbe2eb6f98f6d99f2ce105468cdf56e
This commit is contained in:
root 2023-11-26 03:26:31 +01:00 committed by Pierre-Louis Bonicoli
parent 281fe18326
commit 543c8fd9a2
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
<div class="navbar-left ui secondary menu">
<!-- the logo -->
<a class="item" id="navbar-logo" href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr "dashboard"}}{{else}}{{ctx.Locale.Tr "home"}}{{end}}">
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/gitea-sm.png" alt="{{.locale.Tr "logo"}}" aria-hidden="true">
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/gitea-sm.png" alt="{{ctx.Locale.Tr "logo"}}" aria-hidden="true">
</a>
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column -->

View File

@ -1,4 +1,4 @@
{{if .IsSigned}}
<a class="item" href="https://docs.gitea.io/">{{.locale.Tr "help"}}</a>
<a class="item" href="https://docs.gitea.io/">{{ctx.Locale.Tr "help"}}</a>
{{end}}
<a class="item" href="mailto:forge-support@chapril.org">Support</a>

View File

@ -1 +1 @@
<a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/">{{.locale.Tr "help"}}</a>
<a class="item" href="https://docs.gitea.io/">{{ctx.Locale.Tr "help"}}</a>