Jarmo Riikonen 54e0f4fc09 Overall score for Genre for user
Requires styling work (out of my skills 100%)
Basic mechanics added and someone should continue for styles.
2018-07-02 20:57:44 +03:00

13 lines
445 B
Plaintext

component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore string)
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
h2()= 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)