Show relations

This commit is contained in:
2016-11-23 18:07:02 +09:00
parent 3fe3d00134
commit 12558bf718
5 changed files with 60 additions and 7 deletions

View File

@ -36,6 +36,14 @@ component Anime(anime *arn.Anime)
//- each watcher in friendsWatching
//- +avatar(watcher)
if len(anime.Relations) > 0
h3.anime-header Relations
.relations
each relation in anime.Relations
a.relation.ajax(href="/anime/" + toString(relation.ID), title=relation.Anime().Title.Romaji)
img.anime-image.relation-image(src=relation.Anime().Image, alt=relation.Anime().Title.Romaji)
span= arn.Capitalize(relation.Type)
if len(anime.Genres) > 0
h3.anime-header Genres
.light-button-group