15 lines
498 B
Plaintext

component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64)
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
//- if user != nil
//- h2= fmt.Sprintf("%.1f", userScore)
.corner-buttons-hide-on-mobile
if user != nil
button.action(data-trigger="click", data-action="toggleHideAddedAnime", title="Hide anime in my collection")
RawIcon("eye-slash")
a.button(href="/genres", title="View genres")
RawIcon("clone")
AnimeGrid(animes, user)