Gitea 1.18.0: upgrade templates

- use Chapril logo in head navbar
- s/.i18.Tr/.locale.Tr/
This commit is contained in:
Pierre-Louis Bonicoli 2023-01-10 01:47:48 +01:00
parent e7bc115835
commit 54ac5a8b42
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
{{end}} {{end}}
<div class="item brand" style="justify-content: space-between;"> <div class="item brand" style="justify-content: space-between;">
<a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}"> <a href="{{AppSubUrl}}/" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}">
<img width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}" aria-hidden="true"> <img width="30" height="30" src="{{AssetUrlPrefix}}/img/gitea-sm.png" alt="{{.locale.Tr "logo"}}" aria-hidden="true">
</a> </a>
{{if .IsSigned}} {{if .IsSigned}}
<a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.locale.Tr "notifications"}}'> <a href="{{AppSubUrl}}/notifications" class="tooltip mobile-only" data-content='{{.locale.Tr "notifications"}}'>

View File

@ -1,4 +1,4 @@
{{if .IsSigned}} {{if .IsSigned}}
<a class="item" href="https://docs.gitea.io/">{{.i18n.Tr "help"}}</a> <a class="item" href="https://docs.gitea.io/">{{.locale.Tr "help"}}</a>
{{end}} {{end}}
<a class="item" href="mailto:forge-support@chapril.org">Support</a> <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/">{{.i18n.Tr "help"}}</a> <a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/">{{.locale.Tr "help"}}</a>