From 1f66094bae5144a95decd0a3659b4c270a3bcaa9 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 1 Apr 2020 19:40:48 +0200 Subject: removed remaining landing-page/home fragments Signed-off-by: Toni Uhlig --- internal/route/home.go | 4 +--- templates/base/head.tmpl | 2 -- templates/home.tmpl | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 templates/home.tmpl diff --git a/internal/route/home.go b/internal/route/home.go index a389c080..2b12a15b 100644 --- a/internal/route/home.go +++ b/internal/route/home.go @@ -20,7 +20,6 @@ import ( ) const ( - HOME = "home" EXPLORE_REPOS = "explore/repos" EXPLORE_USERS = "explore/users" EXPLORE_ORGANIZATIONS = "explore/organizations" @@ -44,8 +43,7 @@ func Home(c *context.Context) { return } - c.Data["PageIsHome"] = true - c.Success(HOME) + ExploreRepos(c) } func ExploreRepos(c *context.Context) { diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 94d8ff22..3b196b91 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -96,8 +96,6 @@ {{.i18n.Tr "dashboard"}} {{.i18n.Tr "issues"}} {{.i18n.Tr "pull_requests"}} - {{else}} - {{.i18n.Tr "home"}} {{end}} {{.i18n.Tr "explore"}} diff --git a/templates/home.tmpl b/templates/home.tmpl deleted file mode 100644 index 1ba9f7ed..00000000 --- a/templates/home.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -{{template "base/head" .}} -
-
-{{template "base/footer" .}} -- cgit v1.2.3