2018-01-25 15:29:52 +01:00
|
|
|
component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime, quotes []*arn.Quote, user *arn.User)
|
2017-11-12 13:41:19 +01:00
|
|
|
.character-page
|
2017-11-19 15:15:44 +01:00
|
|
|
.character-left-column
|
|
|
|
.character-header
|
|
|
|
.character-image-container
|
|
|
|
img.character-image-fullsize(src=character.Image, alt=character.Name)
|
|
|
|
.character-description-container
|
|
|
|
h1.character-name= character.Name
|
|
|
|
.anime-alternative-title
|
|
|
|
Japanese("日本語の名前無し")
|
|
|
|
.character-description!= markdown.Render(character.Description)
|
|
|
|
|
|
|
|
h3 Anime
|
|
|
|
.character-anime
|
2017-11-20 09:01:28 +01:00
|
|
|
each anime in characterAnime
|
2017-11-19 15:15:44 +01:00
|
|
|
a.character-anime-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
2018-03-20 22:39:21 +01: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 17:06:47 +01:00
|
|
|
|
2018-01-26 11:30:26 +01:00
|
|
|
if len(quotes) >0
|
|
|
|
h3 Quotes
|
|
|
|
.character-quotes
|
|
|
|
each quote in quotes
|
2018-02-24 13:11:12 +01:00
|
|
|
.character-quote
|
|
|
|
Quote(quote)
|
2017-11-12 13:41:19 +01: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 13:48:21 +01:00
|
|
|
|
|
|
|
if strings.Contains(attribute.Value, "<")
|
|
|
|
td.character-attributes-value!= markdown.Render(attribute.Value)
|
|
|
|
else
|
|
|
|
td.character-attributes-value= attribute.Value
|
2017-11-12 12:44:29 +01:00
|
|
|
|