44 lines
1.5 KiB
Plaintext
Raw Normal View History

component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime, quotes []*arn.Quote, user *arn.User)
2017-11-12 12:41:19 +00:00
.character-page
2017-11-19 14:15:44 +00:00
.character-left-column
.character-header
.character-image-container
2018-03-27 03:25:25 +00:00
img.character-image-fullsize(src=character.ImageLink("large"), alt=character.Name.Canonical)
2017-11-19 14:15:44 +00:00
.character-description-container
2018-03-27 03:25:25 +00:00
h1.character-name= character.Name.Canonical
2017-11-19 14:15:44 +00:00
.anime-alternative-title
2018-03-27 03:25:25 +00:00
if character.Name.Japanese != ""
Japanese(character.Name.Japanese)
else
Japanese("日本語の名前無し")
2017-11-19 14:15:44 +00:00
.character-description!= markdown.Render(character.Description)
h3 Anime
.character-anime
2017-11-20 08:01:28 +00:00
each anime in characterAnime
a.character-anime-item(href=anime.Link(), title=anime.Title.ByUser(user))
2018-03-20 21:39:21 +00:00
img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
2018-02-25 16:06:47 +00:00
if len(quotes) >0
h3 Quotes
.character-quotes
each quote in quotes
2018-02-24 12:11:12 +00:00
.character-quote
Quote(quote)
2017-11-12 12:41:19 +00:00
if len(character.Attributes) > 0
.character-sidebar
h3 Information
table.character-attributes
each attribute in character.Attributes
tr.mountable(data-mountable-type="info")
td.character-attributes-name= attribute.Name + ":"
2017-11-12 12:48:21 +00:00
if strings.Contains(attribute.Value, "<")
td.character-attributes-value!= markdown.Render(attribute.Value)
else
td.character-attributes-value= attribute.Value
2017-11-12 11:44:29 +00:00