Design improvements
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Get the dashboard or the frontpage when logged out.
|
||||
// Get the anime list or the frontpage when logged out.
|
||||
func Get(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
@ -27,5 +27,5 @@ func Get(ctx *aero.Context) string {
|
||||
animeList.PrefetchAnime()
|
||||
animeList.Sort()
|
||||
|
||||
return ctx.HTML(components.AnimeLists(animeList.SplitByStatus(), animeList.User(), user))
|
||||
return ctx.HTML(components.Home(animeList.Watching(), animeList.User(), user, "watching"))
|
||||
}
|
||||
|
3
pages/home/home.pixy
Normal file
3
pages/home/home.pixy
Normal file
@ -0,0 +1,3 @@
|
||||
component Home(animeList *arn.AnimeList, viewUser *arn.User, user *arn.User, status string)
|
||||
StatusTabs("/animelist/")
|
||||
AnimeListFilteredByStatus(animeList, viewUser, user, status)
|
Reference in New Issue
Block a user