Improved explore page
This commit is contained in:
@ -4,10 +4,12 @@ import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
genreName := ctx.Get("name")
|
||||
genre, err := arn.GetGenre(genreName)
|
||||
|
||||
@ -15,5 +17,5 @@ func Get(ctx *aero.Context) string {
|
||||
return ctx.Error(404, "Genre not found", err)
|
||||
}
|
||||
|
||||
return ctx.HTML(components.Genre(genre))
|
||||
return ctx.HTML(components.Genre(genre, user))
|
||||
}
|
||||
|
Reference in New Issue
Block a user