From 36e3faed5ef6786b87f9456cce5f2f3274640333 Mon Sep 17 00:00:00 2001 From: avadesian Date: Wed, 28 Jul 2021 09:41:52 +0800 Subject: [PATCH 1/9] change homepage --- routers/routes/routes.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 4f1f6f314..37ebdd8d5 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -305,7 +305,12 @@ func RegisterRoutes(m *macaron.Macaron) { m.Head("/", func() string { return "" }) - m.Get("/", routers.ExploreRepos) + m.Get("/", routers.Dashboard) + // func() { + // m.Get("", func(ctx *context.Context) { + // ctx.Redirect(setting.AppSubURL + "/dashboard") + // }) + // }, ignSignIn m.Get("/dashboard", routers.Dashboard) m.Group("/explore", func() { m.Get("", func(ctx *context.Context) { From b7d2089e986a2d961207c0615b88c397019ea95c Mon Sep 17 00:00:00 2001 From: avadesian Date: Wed, 28 Jul 2021 10:02:16 +0800 Subject: [PATCH 2/9] modify navigator bar for dashboard --- templates/base/head_navbar.tmpl | 2 +- templates/base/head_navbar_home.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 11dab3717..37c6e5b15 100755 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -31,7 +31,7 @@ {{else if .IsLandingPageHome}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{.i18n.Tr "custom.head.openi"}} {{else if .IsLandingPageHome}} - {{.i18n.Tr "home"}} + {{.i18n.Tr "home"}} {{.i18n.Tr "custom.head.openi"}}