2018-04-09 16:17:21 +00:00
|
|
|
component AnimeCharacters(anime *arn.Anime, user *arn.User, standAlonePage bool)
|
|
|
|
if standAlonePage
|
|
|
|
h1.mountable
|
|
|
|
a(href=anime.Link())= anime.Title.ByUser(user)
|
2017-10-20 14:52:07 +00:00
|
|
|
|
2017-11-04 16:11:47 +00:00
|
|
|
if anime.Characters() != nil && len(anime.Characters().Items) > 0
|
2018-04-09 16:17:21 +00:00
|
|
|
.anime-section.mountable
|
|
|
|
h3.anime-section-name
|
|
|
|
a(href=anime.Characters().Link()) Characters
|
|
|
|
|
2017-11-04 07:45:39 +00:00
|
|
|
.characters
|
|
|
|
each character in anime.Characters().Items
|
2018-04-09 16:17:21 +00:00
|
|
|
if (character.Role == "main" || standAlonePage) && character.Character() != nil
|
2017-11-04 10:09:19 +00:00
|
|
|
.mountable(data-mountable-type="character")
|
2018-04-22 14:12:00 +00:00
|
|
|
Character(character.Character(), user)
|