Removed main quote rendering

This commit is contained in:
Eduard Urbach 2018-11-01 15:34:17 +09:00
parent 257ba1bf59
commit ae1bd6846d
2 changed files with 8 additions and 6 deletions

View File

@ -31,9 +31,9 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
else
Japanese("日本語の名前無し")
if mainQuote != nil
.character-quotes
Quote(mainQuote, user)
//- if mainQuote != nil
//- .character-quotes
//- Quote(mainQuote, user)
.character-description.mountable(data-mountable-type="header")!= markdown.Render(character.Description)
@ -51,13 +51,12 @@ component CharacterDetails(character *arn.Character, characterAnime []*arn.Anime
a.character-anime-item.tip.mountable(href=anime.Link(), aria-label=anime.Title.ByUser(user), data-mountable-type="anime")
img.character-anime-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
if len(quotes) > 0 && (len(quotes) > 1 || mainQuote != quotes[0])
if len(quotes) > 0
.character-section
h3.character-section-name.mountable Quotes
.quotes.character-quotes.mountable
each quote in quotes
if mainQuote == nil || quote.ID != mainQuote.ID
Quote(quote, user)
.character-section

View File

@ -62,6 +62,9 @@
.quote-footer
display none
.quote
max-width 500px
.character-friends
.user-avatars
justify-content flex-start