diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-08-01 00:57:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 18:57:02 +0200 |
commit | 589677fafb4b77112b7220a1c6089cec71d6db94 (patch) | |
tree | 1580defd542b1fe02e1a2f07e5487e6dea47ada6 /modules/templates | |
parent | 2c2f75cb2cf0de6fdeeb931377873dd07ffbe774 (diff) | |
download | gitea-589677fafb4b77112b7220a1c6089cec71d6db94.tar.gz gitea-589677fafb4b77112b7220a1c6089cec71d6db94.zip |
Add disable download source configuration (#20548)
Add configuration to enable/disable download source from UI.
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/base.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/templates/base.go b/modules/templates/base.go index 282019f826..9563650e12 100644 --- a/modules/templates/base.go +++ b/modules/templates/base.go @@ -35,10 +35,11 @@ func BaseVars() Vars { "IsLandingPageExplore": setting.LandingPageURL == setting.LandingPageExplore, "IsLandingPageOrganizations": setting.LandingPageURL == setting.LandingPageOrganizations, - "ShowRegistrationButton": setting.Service.ShowRegistrationButton, - "ShowMilestonesDashboardPage": setting.Service.ShowMilestonesDashboardPage, - "ShowFooterBranding": setting.ShowFooterBranding, - "ShowFooterVersion": setting.ShowFooterVersion, + "ShowRegistrationButton": setting.Service.ShowRegistrationButton, + "ShowMilestonesDashboardPage": setting.Service.ShowMilestonesDashboardPage, + "ShowFooterBranding": setting.ShowFooterBranding, + "ShowFooterVersion": setting.ShowFooterVersion, + "DisableDownloadSourceArchives": setting.Repository.DisableDownloadSourceArchives, "EnableSwagger": setting.API.EnableSwagger, "EnableOpenIDSignIn": setting.Service.EnableOpenIDSignIn, |