Add the config option
This commit is contained in:
parent
30b4bca5a6
commit
3fed792929
3 changed files with 10 additions and 0 deletions
|
@ -2459,6 +2459,10 @@ LEVEL = Info
|
|||
;ENABLE_SITEMAP = true
|
||||
;; Enable/Disable RSS/Atom feed
|
||||
;ENABLE_FEED = true
|
||||
;; Terms of Service URL. If set, users will have to agree to the ToS during registration.
|
||||
;TERMS_OF_SERVICE = /terms
|
||||
;; Privacy Policy URL. If set, users will have to agree to the Privacy Policy during registration.
|
||||
;PRIVACY_POLICY = /privacy
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
@ -11,6 +11,8 @@ type OtherConfig struct {
|
|||
ShowFooterPoweredBy bool
|
||||
EnableFeed bool
|
||||
EnableSitemap bool
|
||||
TermsOfServiceUrl string
|
||||
PrivacyPolicyUrl string
|
||||
}
|
||||
|
||||
var Other = OtherConfig{
|
||||
|
@ -19,6 +21,8 @@ var Other = OtherConfig{
|
|||
ShowFooterPoweredBy: true,
|
||||
EnableSitemap: true,
|
||||
EnableFeed: true,
|
||||
TermsOfServiceUrl: "",
|
||||
PrivacyPolicyUrl: "",
|
||||
}
|
||||
|
||||
func loadOtherFrom(rootCfg ConfigProvider) {
|
||||
|
|
|
@ -53,6 +53,8 @@ func CommonTemplateContextData() ContextData {
|
|||
"ShowMilestonesDashboardPage": setting.Service.ShowMilestonesDashboardPage,
|
||||
"ShowFooterVersion": setting.Other.ShowFooterVersion,
|
||||
"DisableDownloadSourceArchives": setting.Repository.DisableDownloadSourceArchives,
|
||||
"TermsOfServiceURL": setting.Other.TermsOfServiceUrl,
|
||||
"PrivacyPolicyURL": setting.Other.PrivacyPolicyUrl,
|
||||
|
||||
"EnableSwagger": setting.API.EnableSwagger,
|
||||
"EnableOpenIDSignIn": setting.Service.EnableOpenIDSignIn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue