2018-07-03 13:13:38 +03:00

14 lines
483 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="hideAddedAnime", title="Hide anime in my collection")
RawIcon("eye-slash")
a.button(href="/genres", title="View genres")
RawIcon("clone")
AnimeGrid(animes, user)