15 lines
580 B
Plaintext
Raw Normal View History

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
.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
if (character.Role == "main" || standAlonePage) && character.Character() != nil
2017-11-04 10:09:19 +00:00
.mountable(data-mountable-type="character")
Character(character.Character(), user)