2017-12-03 21:33:24 +00:00
|
|
|
component QuotePage(quote *arn.Quote, character *arn.Character, user *arn.User)
|
|
|
|
QuoteTabs(quote, user)
|
2018-02-25 11:19:27 +00:00
|
|
|
|
2018-01-25 11:26:22 +00:00
|
|
|
.quote-full-page
|
|
|
|
.quote-main-column
|
|
|
|
QuoteMainColumn(quote, user)
|
|
|
|
|
|
|
|
component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
2018-02-25 11:19:27 +00:00
|
|
|
.widget-form.mountable
|
2018-04-22 14:12:00 +00:00
|
|
|
QuoteContent(quote, user)
|
2018-01-25 11:26:22 +00:00
|
|
|
|
2018-10-29 03:35:38 +00:00
|
|
|
if quote.Anime() != nil
|
|
|
|
p.quote-anime
|
|
|
|
a(href=quote.Anime().Link())= quote.Anime().Title.ByUser(user)
|
|
|
|
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Comments
|
|
|
|
Comments(quote, user)
|
|
|
|
|
2018-01-25 11:26:22 +00:00
|
|
|
.footer.mountable
|
|
|
|
if quote.EditedBy != ""
|
|
|
|
span Edited
|
|
|
|
span.utc-date(data-date=quote.Edited)
|
|
|
|
span by
|
2018-04-08 10:01:18 +00:00
|
|
|
a(href=quote.Editor().Link())= quote.Editor().Nick
|
2018-01-25 11:26:22 +00:00
|
|
|
else
|
|
|
|
span Posted
|
|
|
|
span.utc-date(data-date=quote.Created)
|
|
|
|
span by
|
2018-03-23 20:33:19 +00:00
|
|
|
a(href=quote.Creator().Link())= quote.Creator().Nick
|
2018-01-25 11:26:22 +00:00
|
|
|
span .
|
|
|
|
|
2017-12-03 21:33:24 +00:00
|
|
|
component QuoteTabs(quote *arn.Quote, user *arn.User)
|
|
|
|
.tabs
|
2018-04-19 14:23:14 +00:00
|
|
|
LikeTab(strconv.Itoa(len(quote.Likes)), "heart", "quote", quote, user)
|
2018-01-26 10:31:50 +00:00
|
|
|
Tab("Quote", "quote-left", quote.Link())
|
2018-03-15 21:44:09 +00:00
|
|
|
if user != nil
|
|
|
|
Tab("Edit", "pencil", quote.Link() + "/edit")
|
2018-03-13 16:59:16 +00:00
|
|
|
Tab("History", "history", quote.Link() + "/history")
|
2018-01-25 11:26:22 +00:00
|
|
|
|
|
|
|
component QuoteAnime(anime *arn.Anime, user *arn.User)
|
2018-03-23 20:33:19 +00:00
|
|
|
a.quote-anime-list-item(href=anime.Link(), title=anime.Title.ByUser(user))
|
2018-03-20 21:39:21 +00:00
|
|
|
img.quote-anime-list-item-image.lazy(data-src=anime.ImageLink("small"), data-webp="true", data-color=anime.AverageColor(), alt=anime.Title.ByUser(user))
|