aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTohka <darktohka@users.noreply.github.com>2018-10-18 16:07:30 +0300
committerLunny Xiao <xiaolunwen@gmail.com>2018-10-18 21:07:30 +0800
commit8db3bdc683032ecd2aaafef523e83bfc436bce5f (patch)
tree82ed597b566f81a7edfa05a1a6c469d5ab288c75
parentea619b39b2f2a3c1fb5ad28ebd4a269b2f822111 (diff)
downloadgitea-8db3bdc683032ecd2aaafef523e83bfc436bce5f.tar.gz
gitea-8db3bdc683032ecd2aaafef523e83bfc436bce5f.zip
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>
-rw-r--r--templates/home.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/home.tmpl b/templates/home.tmpl
index 7b7c9533a2..469b47cfa8 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -7,7 +7,7 @@
</div>
<div class="hero">
<h1 class="ui icon header title">
- {{.i18n.Tr "app_name"}}
+ {{AppName}}
</h1>
<h2>{{.i18n.Tr "app_desc"}}</h2>
</div>