summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-23 07:38:25 +0800
committerGitHub <noreply@github.com>2023-04-22 19:38:25 -0400
commitd44e1565dadd09b4cdbb924479bf6e59a4d3c403 (patch)
treeeaf824f9bc2477f8a4b119056d2ffd26a672c0f7 /modules/templates
parentf1173d6879cb26af21483037fae72542f3088408 (diff)
downloadgitea-d44e1565dadd09b4cdbb924479bf6e59a4d3c403.tar.gz
gitea-d44e1565dadd09b4cdbb924479bf6e59a4d3c403.zip
Refactor `setting.Other` and remove unused `SHOW_FOOTER_BRANDING` (#24270)
The `SHOW_FOOTER_BRANDING` came from year 2015, and it seems nobody ever uses it. It only shows an GitHub icon which seems unrelated to Gitea, it doesn't do what document says. So, remove it. ## :warning: Breaking Users can now remove the key `[other].SHOW_FOOTER_BRANDING` from their app.ini.
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/base.go3
-rw-r--r--modules/templates/helper.go2
2 files changed, 2 insertions, 3 deletions
diff --git a/modules/templates/base.go b/modules/templates/base.go
index e95ce31cfc..4254a56976 100644
--- a/modules/templates/base.go
+++ b/modules/templates/base.go
@@ -33,8 +33,7 @@ func BaseVars() Vars {
"ShowRegistrationButton": setting.Service.ShowRegistrationButton,
"ShowMilestonesDashboardPage": setting.Service.ShowMilestonesDashboardPage,
- "ShowFooterBranding": setting.ShowFooterBranding,
- "ShowFooterVersion": setting.ShowFooterVersion,
+ "ShowFooterVersion": setting.Other.ShowFooterVersion,
"DisableDownloadSourceArchives": setting.Repository.DisableDownloadSourceArchives,
"EnableSwagger": setting.API.EnableSwagger,
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index c5b77989be..c82f88a42f 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -181,7 +181,7 @@ func NewFuncMap() []template.FuncMap {
return setting.UI.DefaultShowFullName
},
"ShowFooterTemplateLoadTime": func() bool {
- return setting.ShowFooterTemplateLoadTime
+ return setting.Other.ShowFooterTemplateLoadTime
},
"AllowedReactions": func() []string {
return setting.UI.Reactions