15 lines
535 B
Plaintext
Raw Normal View History

2016-11-03 07:54:30 +00:00
component GenreOverview
2016-11-09 11:32:19 +00:00
h2.genre-header Genres
2016-11-03 07:54:30 +00:00
div
2016-11-09 11:32:19 +00:00
each genre in arn.Genres
2016-11-03 07:54:30 +00:00
a.light-button.ajax(href="/genres/" + arn.FixGenre(genre))
2016-11-13 15:34:01 +00:00
Icon(arn.GetGenreIcon(genre))
2016-11-03 07:54:30 +00:00
span= genre
component AnimeInGenre(genre string, animeList []*arn.Anime)
2016-11-09 11:32:19 +00:00
h2.genre-header= arn.Capitalize(genre)
2016-11-03 07:54:30 +00:00
.genre-anime-list
each anime in animeList
a.genre-anime-link.ajax(href="/anime/" + s(anime.ID))
img.anime-image.genre-anime-image(src=anime.Image, alt=anime.Title.Romaji, title=anime.Title.Romaji + " (" + s(anime.Watching) + ")")