From 014d0c0eb0e8f660f94f1a402744b6fde2d8992b Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:41:17 +0000 Subject: [PATCH 1/7] modules/setting/service.go aktualisiert --- modules/setting/service.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/setting/service.go b/modules/setting/service.go index a5360ca801..7a907023c4 100644 --- a/modules/setting/service.go +++ b/modules/setting/service.go @@ -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) From 8b0bf77c4f5a0ee5f7fcb5be65465b02b6d37dbc Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:41:51 +0000 Subject: [PATCH 2/7] routers/web/home.go aktualisiert --- routers/web/home.go | 1 - 1 file changed, 1 deletion(-) diff --git a/routers/web/home.go b/routers/web/home.go index afde80075f..b1cc04d939 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -58,7 +58,6 @@ 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 From 34cc97eda8820868861eb7c6b1197ff2352d914e Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:42:58 +0000 Subject: [PATCH 3/7] templates/home.tmpl aktualisiert --- templates/home.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/home.tmpl b/templates/home.tmpl index 3185dc5a5e..5e2557a51f 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -11,8 +11,6 @@ - {{if .LandingPageInfoEnabled}} - {{template "info/landing-page-info" .}} - {{end}} + {{template "landing-page-info/landing-page-info" .}} {{template "base/footer" .}} From 26a2729f76a373d958aee9c9f94b3f24880e1522 Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:43:40 +0000 Subject: [PATCH 4/7] templates/landing-page/landing-page.tmpl aktualisiert --- .../landing-page-info.tmpl => landing-page/landing-page.tmpl} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename templates/{info/landing-page-info.tmpl => landing-page/landing-page.tmpl} (100%) diff --git a/templates/info/landing-page-info.tmpl b/templates/landing-page/landing-page.tmpl similarity index 100% rename from templates/info/landing-page-info.tmpl rename to templates/landing-page/landing-page.tmpl From dc05f30a26add91d39529384d5f7c7b1d52681aa Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:44:04 +0000 Subject: [PATCH 5/7] templates/home.tmpl aktualisiert --- templates/home.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/home.tmpl b/templates/home.tmpl index 5e2557a51f..54edf0db37 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -11,6 +11,6 @@ - {{template "landing-page-info/landing-page-info" .}} + {{template "landing-page/landing-page" .}} {{template "base/footer" .}} From cc71a51b956a0ab8448a9d7e5f922178a8ab70a0 Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:45:54 +0000 Subject: [PATCH 6/7] routers/web/home.go aktualisiert --- routers/web/home.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/home.go b/routers/web/home.go index b1cc04d939..2e294a5c5a 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -58,6 +58,7 @@ func Home(ctx *context.Context) { ctx.Redirect(setting.AppSubURL + "/user/login") return } + ctx.Data["PageIsHome"] = true ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled From 482ad78be441dba730c3d1e58f45cc8660f57d4c Mon Sep 17 00:00:00 2001 From: davrot Date: Sun, 2 Feb 2025 15:46:10 +0000 Subject: [PATCH 7/7] routers/web/home.go aktualisiert --- routers/web/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/home.go b/routers/web/home.go index 2e294a5c5a..4ea961c055 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -58,7 +58,7 @@ func Home(ctx *context.Context) { ctx.Redirect(setting.AppSubURL + "/user/login") return } - + ctx.Data["PageIsHome"] = true ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled