aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-04-01 19:40:48 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-02-02 12:33:15 +0100
commit1f66094bae5144a95decd0a3659b4c270a3bcaa9 (patch)
tree1421346dda696f8bb4ac0c7e5e3b2ac131201f40
parentee3c72e394b4a5913b7e6062424112521066cad3 (diff)
removed remaining landing-page/home fragmentsmygogs
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--internal/route/home.go4
-rw-r--r--templates/base/head.tmpl2
-rw-r--r--templates/home.tmpl4
3 files changed, 1 insertions, 9 deletions
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 @@
<a class="item{{if .PageIsDashboard}} active{{end}}" href="{{AppSubURL}}/">{{.i18n.Tr "dashboard"}}</a>
<a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubURL}}/issues">{{.i18n.Tr "issues"}}</a>
<a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubURL}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
- {{else}}
- <a class="item{{if .PageIsHome}} active{{end}}" href="{{AppSubURL}}/">{{.i18n.Tr "home"}}</a>
{{end}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubURL}}/explore/repos">{{.i18n.Tr "explore"}}</a>
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" .}}
- <div class="home">
- </div>
-{{template "base/footer" .}}