Show relations
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user