mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-07-29 10:00:03 +02:00
Compare commits
7 commits
52cef277ec
...
482ad78be4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
482ad78be4 | ||
![]() |
cc71a51b95 | ||
![]() |
dc05f30a26 | ||
![]() |
26a2729f76 | ||
![]() |
34cc97eda8 | ||
![]() |
8b0bf77c4f | ||
![]() |
014d0c0eb0 |
4 changed files with 2 additions and 6 deletions
|
@ -87,7 +87,6 @@ var Service = struct {
|
|||
ValidSiteURLSchemes []string
|
||||
UsernameCooldownPeriod int64
|
||||
MaxUserRedirects int64
|
||||
LandingPageInfoEnabled bool
|
||||
|
||||
// OpenID settings
|
||||
EnableOpenIDSignIn bool
|
||||
|
@ -216,7 +215,6 @@ func loadServiceFrom(rootCfg ConfigProvider) {
|
|||
if Service.EnableTimetracking {
|
||||
Service.DefaultEnableTimetracking = sec.Key("DEFAULT_ENABLE_TIMETRACKING").MustBool(true)
|
||||
}
|
||||
Service.LandingPageInfoEnabled = sec.Key("ENABLE_LANDING_PAGE_INFO").MustBool(true)
|
||||
Service.DefaultEnableDependencies = sec.Key("DEFAULT_ENABLE_DEPENDENCIES").MustBool(true)
|
||||
Service.AllowCrossRepositoryDependencies = sec.Key("ALLOW_CROSS_REPOSITORY_DEPENDENCIES").MustBool(true)
|
||||
Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)
|
||||
|
|
|
@ -58,7 +58,7 @@ func Home(ctx *context.Context) {
|
|||
ctx.Redirect(setting.AppSubURL + "/user/login")
|
||||
return
|
||||
}
|
||||
ctx.Data["LandingPageInfoEnabled"] = setting.Service.LandingPageInfoEnabled
|
||||
|
||||
ctx.Data["PageIsHome"] = true
|
||||
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{if .LandingPageInfoEnabled}}
|
||||
{{template "info/landing-page-info" .}}
|
||||
{{end}}
|
||||
{{template "landing-page/landing-page" .}}
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue