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)
|
|
|
|
.quote-side-column
|
|
|
|
QuoteSideColumn(quote, user)
|
|
|
|
|
|
|
|
component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
2018-02-25 11:19:27 +00:00
|
|
|
.widget-form.mountable
|
2018-01-25 11:26:22 +00:00
|
|
|
QuoteContent(quote)
|
|
|
|
|
|
|
|
.footer.mountable
|
|
|
|
if quote.EditedBy != ""
|
|
|
|
span Edited
|
|
|
|
span.utc-date(data-date=quote.Edited)
|
|
|
|
span by
|
|
|
|
a.ajax(href=quote.EditedByUser().Link())= quote.EditedByUser().Nick
|
|
|
|
else
|
|
|
|
span Posted
|
|
|
|
span.utc-date(data-date=quote.Created)
|
|
|
|
span by
|
|
|
|
a.ajax(href=quote.Creator().Link())= quote.Creator().Nick
|
|
|
|
span .
|
|
|
|
|
|
|
|
component QuoteSideColumn(quote *arn.Quote, user *arn.User)
|
|
|
|
QuoteInformation(quote, user)
|
|
|
|
|
|
|
|
component QuoteInformation(quote *arn.Quote, user *arn.User)
|
|
|
|
section.quote-section.mountable
|
|
|
|
h3.quote-section-name Information
|
2018-02-25 11:19:27 +00:00
|
|
|
|
2018-01-25 11:26:22 +00:00
|
|
|
table.quote-info-table
|
2018-02-25 11:19:27 +00:00
|
|
|
if quote.AnimeID != "" && quote.Anime() != nil
|
2018-01-25 11:26:22 +00:00
|
|
|
tr.mountable(data-mountable-type="info")
|
|
|
|
td.quote-info-key Anime:
|
|
|
|
td.quote-info-value
|
|
|
|
QuoteAnime(quote.Anime(), user)
|
|
|
|
|
2018-02-25 18:52:28 +00:00
|
|
|
if quote.EpisodeNumber != -1
|
2018-01-25 11:26:22 +00:00
|
|
|
tr.mountable(data-mountable-type="info")
|
|
|
|
td.quote-info-key Episode:
|
2018-02-24 12:11:12 +00:00
|
|
|
td.quote-info-value= quote.EpisodeNumber
|
2018-01-25 11:26:22 +00:00
|
|
|
|
2018-02-25 19:08:31 +00:00
|
|
|
if quote.Time != -1
|
2018-01-25 11:26:22 +00:00
|
|
|
tr.mountable(data-mountable-type="info")
|
|
|
|
td.anime-info-key Time:
|
|
|
|
td.anime-info-value= strconv.Itoa(quote.Time) + " min"
|
2017-12-03 21:33:24 +00:00
|
|
|
|
|
|
|
component QuoteTabs(quote *arn.Quote, user *arn.User)
|
|
|
|
.tabs
|
2018-01-25 11:26:22 +00:00
|
|
|
TabLikeQuote(strconv.Itoa(len(quote.Likes)), "heart", quote, user)
|
2018-01-26 10:31:50 +00:00
|
|
|
Tab("Quote", "quote-left", quote.Link())
|
2017-12-03 21:33:24 +00:00
|
|
|
Tab("Edit", "pencil", quote.Link() + "/edit")
|
2018-01-25 11:26:22 +00:00
|
|
|
|
|
|
|
component QuoteAnime(anime *arn.Anime, user *arn.User)
|
|
|
|
a.quote-anime-list-item.ajax(href=anime.Link(), title=anime.Title.ByUser(user))
|
|
|
|
img.quote-anime-list-item-image.lazy(data-src=anime.Image("small"), data-webp="true", alt=anime.Title.ByUser(user))
|