mirror of
https://github.com/go-gitea/gitea
synced 2025-01-11 02:04:27 +00:00
Fix home page template regression (#5102)
Commit 7bb4d610e5cca7ad514e377d2b36254a4cfee5b9 tries to take the app_name from the locale, however, it is a user defined setting. This causes the app name to simply display as `app_name` instead of the correct value. templates/helper.go automatically injects the AppName variable into every template, so we can safely use that instead. Signed-off-by: Daniel Derzsi <daniel@tohka.us>
This commit is contained in:
parent
ea619b39b2
commit
8db3bdc683
2
templates/home.tmpl
vendored
2
templates/home.tmpl
vendored
@ -7,7 +7,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="hero">
|
<div class="hero">
|
||||||
<h1 class="ui icon header title">
|
<h1 class="ui icon header title">
|
||||||
{{.i18n.Tr "app_name"}}
|
{{AppName}}
|
||||||
</h1>
|
</h1>
|
||||||
<h2>{{.i18n.Tr "app_desc"}}</h2>
|
<h2>{{.i18n.Tr "app_desc"}}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user