2016-11-19 19:53:33 +00:00
|
|
|
component Genres(genres []*arn.Genre)
|
2016-11-19 18:02:33 +00:00
|
|
|
h2 Genres
|
2016-11-03 07:54:30 +00:00
|
|
|
|
2016-11-19 14:54:31 +00:00
|
|
|
.grid
|
2016-11-19 19:53:33 +00:00
|
|
|
each genre in genres
|
2016-11-21 03:45:52 +00:00
|
|
|
a.grid-cell.ajax(href="/genres/" + genre.ID)
|
|
|
|
.backside-card.ui
|
|
|
|
.grid-text.front
|
|
|
|
GridIcon(arn.GetGenreIcon(genre.Name))
|
|
|
|
span= genre.Name
|
2016-11-19 19:53:33 +00:00
|
|
|
|
2016-11-21 03:45:52 +00:00
|
|
|
if len(genre.AnimeList) > 0
|
|
|
|
img.grid-image.back(src=genre.AnimeList[0].Image, alt=genre.AnimeList[0].Title.Romaji, title=genre.AnimeList[0].Title.Romaji + "\n" + genre.Name + " #1")
|