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 else
Japanese("日本語の名前無し") Japanese("日本語の名前無し")
if mainQuote != nil //- if mainQuote != nil
.character-quotes //- .character-quotes
Quote(mainQuote, user) //- Quote(mainQuote, user)
.character-description.mountable(data-mountable-type="header")!= markdown.Render(character.Description) .character-description.mountable(data-mountable-type="header")!= markdown.Render(character.Description)
@ -51,14 +51,13 @@ 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") 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)) 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 .character-section
h3.character-section-name.mountable Quotes h3.character-section-name.mountable Quotes
.quotes.character-quotes.mountable .quotes.character-quotes.mountable
each quote in quotes each quote in quotes
if mainQuote == nil || quote.ID != mainQuote.ID Quote(quote, user)
Quote(quote, user)
.character-section .character-section
h3.character-section-name.mountable Comments h3.character-section-name.mountable Comments

View File

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