2018-07-03 13:13:38 +03:00
|
|
|
component Genre(genre string, animes []*arn.Anime, user *arn.User, userScore float64)
|
2018-04-25 22:15:42 +02:00
|
|
|
h1(title=fmt.Sprint(len(animes)) + " anime")= strings.Title(genre)
|
2018-07-03 16:33:35 +03:00
|
|
|
|
2018-07-03 23:33:40 +09:00
|
|
|
//- if user != nil
|
|
|
|
//- h2= fmt.Sprintf("%.1f", userScore)
|
2018-07-03 13:13:38 +03:00
|
|
|
|
2017-12-02 21:06:15 +01:00
|
|
|
.corner-buttons-hide-on-mobile
|
2018-03-17 22:09:17 +01:00
|
|
|
if user != nil
|
2018-07-06 01:52:05 +09:00
|
|
|
button.action(data-trigger="click", data-action="toggleHideAddedAnime", title="Hide anime in my collection")
|
2018-03-17 22:09:17 +01:00
|
|
|
RawIcon("eye-slash")
|
2017-12-02 21:06:15 +01:00
|
|
|
|
2018-03-23 21:33:19 +01:00
|
|
|
a.button(href="/genres", title="View genres")
|
2018-03-07 20:40:41 +01:00
|
|
|
RawIcon("clone")
|
|
|
|
|
2017-11-30 01:47:12 +01:00
|
|
|
AnimeGrid(animes, user)
|