diff options
author | Brad Albright <32200834+bhalbright@users.noreply.github.com> | 2019-12-15 08:20:08 -0600 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-12-15 14:20:08 +0000 |
commit | f6b29012e09d5f7770a0b1ea8659da5172e155b3 (patch) | |
tree | cf78ded22aee572c91e93e2a2a3db8a7f9fd903c /modules/setting | |
parent | 7cc16740a56072465b3938cbb9cd326d40bd7ba9 (diff) | |
download | gitea-f6b29012e09d5f7770a0b1ea8659da5172e155b3.tar.gz gitea-f6b29012e09d5f7770a0b1ea8659da5172e155b3.zip |
Add /milestones endpoint (#8733)
Create a /milestones endpoint which basically serves as a dashboard view for milestones, very similar to the /issues or /pulls page.
Closes #8232
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/service.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/service.go b/modules/setting/service.go index 9407231ac6..c463b0a9d5 100644 --- a/modules/setting/service.go +++ b/modules/setting/service.go @@ -21,6 +21,7 @@ var Service struct { DisableRegistration bool AllowOnlyExternalRegistration bool ShowRegistrationButton bool + ShowMilestonesDashboardPage bool RequireSignInView bool EnableNotifyMail bool EnableBasicAuth bool @@ -62,6 +63,7 @@ func newService() { Service.AllowOnlyExternalRegistration = sec.Key("ALLOW_ONLY_EXTERNAL_REGISTRATION").MustBool() Service.EmailDomainWhitelist = sec.Key("EMAIL_DOMAIN_WHITELIST").Strings(",") Service.ShowRegistrationButton = sec.Key("SHOW_REGISTRATION_BUTTON").MustBool(!(Service.DisableRegistration || Service.AllowOnlyExternalRegistration)) + Service.ShowMilestonesDashboardPage = sec.Key("SHOW_MILESTONES_DASHBOARD_PAGE").MustBool(true) Service.RequireSignInView = sec.Key("REQUIRE_SIGNIN_VIEW").MustBool() Service.EnableBasicAuth = sec.Key("ENABLE_BASIC_AUTHENTICATION").MustBool(true) Service.EnableReverseProxyAuth = sec.Key("ENABLE_REVERSE_PROXY_AUTHENTICATION").MustBool() |