From 43f350f5d7716a0707e7fe1e23a4e859085de376 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 22 Sep 2017 20:10:37 +0200 Subject: [PATCH] Redirect frontpage --- mixins/Sidebar.pixy | 6 +++++- pages/home/home.go | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/mixins/Sidebar.pixy b/mixins/Sidebar.pixy index 2b0afda3..eaea54a8 100644 --- a/mixins/Sidebar.pixy +++ b/mixins/Sidebar.pixy @@ -5,7 +5,11 @@ component Sidebar(user *arn.User) else img.user-image.lazy(data-src="/images/brand/64", alt="Anime Notifier") - SidebarButton("Home", "/", "home") + if user != nil + SidebarButton("Home", "/animelist/watching", "home") + else + SidebarButton("Home", "/", "home") + SidebarButton("Forum", "/forum", "comment") SidebarButton("Explore", "/explore", "th") SidebarButton("Artworks", "/artworks", "paint-brush") diff --git a/pages/home/home.go b/pages/home/home.go index 1766a40d..1a31d48a 100644 --- a/pages/home/home.go +++ b/pages/home/home.go @@ -1,8 +1,6 @@ package home import ( - "github.com/animenotifier/arn" - "github.com/aerogo/aero" "github.com/animenotifier/notify.moe/pages/frontpage" "github.com/animenotifier/notify.moe/utils" @@ -16,5 +14,6 @@ func Get(ctx *aero.Context) string { return frontpage.Get(ctx) } - return AnimeList(ctx, user, arn.AnimeListStatusWatching) + return ctx.Redirect("/animelist/watching") + //return AnimeList(ctx, user, arn.AnimeListStatusWatching) }