mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
:Merge branch 'main' of github.com:go-gitea/gitea into api-repo-actions
This commit is contained in:
@@ -8,6 +8,7 @@ import "code.gitea.io/gitea/modules/log"
|
||||
type OtherConfig struct {
|
||||
ShowFooterVersion bool
|
||||
ShowFooterTemplateLoadTime bool
|
||||
ShowFooterPoweredBy bool
|
||||
EnableFeed bool
|
||||
EnableSitemap bool
|
||||
}
|
||||
@@ -15,6 +16,7 @@ type OtherConfig struct {
|
||||
var Other = OtherConfig{
|
||||
ShowFooterVersion: true,
|
||||
ShowFooterTemplateLoadTime: true,
|
||||
ShowFooterPoweredBy: true,
|
||||
EnableSitemap: true,
|
||||
EnableFeed: true,
|
||||
}
|
||||
|
||||
@@ -106,6 +106,9 @@ func NewFuncMap() template.FuncMap {
|
||||
"ShowFooterTemplateLoadTime": func() bool {
|
||||
return setting.Other.ShowFooterTemplateLoadTime
|
||||
},
|
||||
"ShowFooterPoweredBy": func() bool {
|
||||
return setting.Other.ShowFooterPoweredBy
|
||||
},
|
||||
"AllowedReactions": func() []string {
|
||||
return setting.UI.Reactions
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user