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:
parent
281fe18326
commit
543c8fd9a2
|
@ -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 -->
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue