diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-07 15:31:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 03:31:41 -0400 |
commit | ff2f479a4b23484f3717e1efaa24819f9b0e5e60 (patch) | |
tree | ee058e712df158a7a4884be463de661cfd6c01ec /templates/admin | |
parent | 17623bba0d62e1954031fadc019c3cd104cb5fb8 (diff) | |
download | gitea-ff2f479a4b23484f3717e1efaa24819f9b0e5e60.tar.gz gitea-ff2f479a4b23484f3717e1efaa24819f9b0e5e60.zip |
Clean template/helper.go (#23922)
The first step of #23328
This PR cleans:
1. Dead function like `SubStr`
2. Unnecessary function like `UseHTTPS`, it should be provided by
`window.origin`
3. Duplicate function like `IsShowFullName`, there was already a
`DeafultShowFullName`
I have searched these removed functions globally, no use in code.
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index cc0580cc19..14281c70c0 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -11,7 +11,7 @@ <dt>{{.locale.Tr "admin.config.app_name"}}</dt> <dd>{{AppName}}</dd> <dt>{{.locale.Tr "admin.config.app_ver"}}</dt> - <dd>{{AppVer}}{{AppBuiltWith}}</dd> + <dd>{{AppVer}}{{.AppBuiltWith}}</dd> <dt>{{.locale.Tr "admin.config.custom_conf"}}</dt> <dd>{{.CustomConf}}</dd> <dt>{{.locale.Tr "admin.config.app_url"}}</dt> |