Compare commits

...

7 commits

Author SHA1 Message Date
davrot
482ad78be4 routers/web/home.go aktualisiert 2025-02-02 15:46:10 +00:00
davrot
cc71a51b95 routers/web/home.go aktualisiert 2025-02-02 15:45:54 +00:00
davrot
dc05f30a26 templates/home.tmpl aktualisiert 2025-02-02 15:44:04 +00:00
davrot
26a2729f76 templates/landing-page/landing-page.tmpl aktualisiert 2025-02-02 15:43:40 +00:00
davrot
34cc97eda8 templates/home.tmpl aktualisiert 2025-02-02 15:42:58 +00:00
davrot
8b0bf77c4f routers/web/home.go aktualisiert 2025-02-02 15:41:51 +00:00
davrot
014d0c0eb0 modules/setting/service.go aktualisiert 2025-02-02 15:41:17 +00:00
4 changed files with 2 additions and 6 deletions

View file

@ -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)

View file

@ -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

View file

@ -11,8 +11,6 @@
</div>
</div>
</div>
{{if .LandingPageInfoEnabled}}
{{template "info/landing-page-info" .}}
{{end}}
{{template "landing-page/landing-page" .}}
</div>
{{template "base/footer" .}}