2017-11-30 02:21:37 +00:00
|
|
|
component Genres(genres []string, genreToAnime map[string]*arn.Anime, user *arn.User)
|
2017-11-30 01:59:19 +00:00
|
|
|
h1 Genres
|
2016-11-19 19:53:33 +00:00
|
|
|
|
2017-11-30 01:59:19 +00:00
|
|
|
.genres
|
|
|
|
each genre in genres
|
2017-11-30 02:21:37 +00:00
|
|
|
a.genre.mountable.ajax(href="/genre/" + strings.ToLower(genre))
|
2017-11-30 01:59:19 +00:00
|
|
|
.genre-text.front
|
|
|
|
.genre-icon
|
|
|
|
RawIcon(arn.GetGenreIcon(genre))
|
|
|
|
span= genre
|
2017-11-10 15:13:54 +00:00
|
|
|
|
2017-11-30 02:21:37 +00:00
|
|
|
img.genre-image.back(src=genreToAnime[genre].Image("medium"), alt=genreToAnime[genre].Title.ByUser(user), title=genre)
|