16 lines
594 B
Plaintext
Raw Normal View History

component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64, userCompleted int)
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
2018-07-03 13:33:35 +00:00
.average-score-total-completed
if user != nil
p= fmt.Sprintf("Average Score: %.1f | Total Completed: %d", userScore, userCompleted)
.corner-buttons-hide-on-mobile
2018-03-17 21:09:17 +00:00
if user != nil
2018-07-05 16:52:05 +00:00
button.action(data-trigger="click", data-action="toggleHideAddedAnime", title="Hide anime in my collection")
2018-03-17 21:09:17 +00:00
RawIcon("eye-slash")
a.button(href="/genres", title="View genres")
2018-03-07 19:40:41 +00:00
RawIcon("clone")
AnimeGrid(animes, user)