Added comments to AMVs
This commit is contained in:
parent
8191ebaa70
commit
c090b6970c
@ -1,8 +1,11 @@
|
||||
component Comments(parent arn.PostParent, user *arn.User)
|
||||
.thread
|
||||
.posts
|
||||
each post in parent.Posts()
|
||||
Postable(post.ToPostable(), user, "")
|
||||
if user == nil && parent.CountPosts() == 0
|
||||
p.no-data.mountable No comments have been written yet.
|
||||
else
|
||||
each post in parent.Posts()
|
||||
Postable(post.ToPostable(), user, "")
|
||||
|
||||
if user != nil
|
||||
if parent.IsLocked()
|
||||
|
@ -52,6 +52,10 @@ component AMVPage(amv *arn.AMV, user *arn.User)
|
||||
each tag in amv.Tags
|
||||
.tag.mountable= tag
|
||||
|
||||
.widget
|
||||
h3.widget-title.mountable Comments
|
||||
Comments(amv, user)
|
||||
|
||||
if amv.File != "" && amv.Info.Video.Width > 0
|
||||
.footer.amv-details.mountable
|
||||
p= fmt.Sprintf("Video: %dx%d | %.0f FPS | %s", amv.Info.Video.Width, amv.Info.Video.Height, amv.Info.Video.FPS, amv.Info.Video.Codec)
|
||||
|
@ -4,13 +4,19 @@ component QuotePage(quote *arn.Quote, character *arn.Character, user *arn.User)
|
||||
.quote-full-page
|
||||
.quote-main-column
|
||||
QuoteMainColumn(quote, user)
|
||||
.quote-side-column
|
||||
QuoteSideColumn(quote, user)
|
||||
|
||||
component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
||||
.widget-form.mountable
|
||||
QuoteContent(quote, user)
|
||||
|
||||
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)
|
||||
|
||||
.footer.mountable
|
||||
if quote.EditedBy != ""
|
||||
span Edited
|
||||
@ -24,30 +30,6 @@ component QuoteMainColumn(quote *arn.Quote, user *arn.User)
|
||||
a(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
|
||||
|
||||
table.quote-info-table
|
||||
if quote.AnimeID != "" && quote.Anime() != nil
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.quote-info-key Anime:
|
||||
td.quote-info-value
|
||||
QuoteAnime(quote.Anime(), user)
|
||||
|
||||
if quote.EpisodeNumber != -1
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.quote-info-key Episode:
|
||||
td.quote-info-value= quote.EpisodeNumber
|
||||
|
||||
if quote.Time != -1
|
||||
tr.mountable(data-mountable-type="info")
|
||||
td.anime-info-key Time:
|
||||
td.anime-info-value= strconv.Itoa(quote.Time) + " min"
|
||||
|
||||
component QuoteTabs(quote *arn.Quote, user *arn.User)
|
||||
.tabs
|
||||
LikeTab(strconv.Itoa(len(quote.Likes)), "heart", "quote", quote, user)
|
||||
|
@ -5,25 +5,11 @@
|
||||
vertical
|
||||
flex 1
|
||||
|
||||
.quote-side-column
|
||||
sidebar
|
||||
|
||||
> 1250px
|
||||
.quote-full-page
|
||||
horizontal
|
||||
|
||||
.quote-side-column
|
||||
sidebar-medium
|
||||
|
||||
> 1400px
|
||||
.quote-side-column
|
||||
sidebar-big
|
||||
|
||||
.quote-info-table
|
||||
margin 0
|
||||
|
||||
.quote-info-value
|
||||
text-align right
|
||||
.quote-anime
|
||||
horizontal
|
||||
justify-content center
|
||||
margin-bottom 1rem
|
||||
font-size 0.9rem
|
||||
|
||||
.quote-section
|
||||
margin-top 1rem
|
||||
|
Loading…
Reference in New Issue
Block a user