Redirect frontpage

This commit is contained in:
Eduard Urbach 2017-09-22 20:10:37 +02:00
parent 4ce0bed52c
commit 43f350f5d7
2 changed files with 7 additions and 4 deletions

View File

@ -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")

View File

@ -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)
}