Various design improvements
This commit is contained in:
@ -1,11 +1,18 @@
|
||||
component AMV(amv *arn.AMV, user *arn.User)
|
||||
.amv.mountable
|
||||
.video-container
|
||||
video.video.lazy(controls="controls", controlsList="nodownload")
|
||||
source(data-src="https://notify.moe/videos/amvs/" + amv.File, data-type="video/webm")
|
||||
|
||||
AMVVideo(amv)
|
||||
AMVFooter(amv, user)
|
||||
|
||||
component AMVMini(amv *arn.AMV, user *arn.User)
|
||||
.amv.mountable
|
||||
AMVVideo(amv)
|
||||
AMVMiniFooter(amv, user)
|
||||
|
||||
component AMVVideo(amv *arn.AMV)
|
||||
.video-container
|
||||
video.video.lazy(controls="controls", controlsList="nodownload")
|
||||
source(data-src="https://notify.moe/videos/amvs/" + amv.File, data-type="video/webm")
|
||||
|
||||
component AMVFooter(amv *arn.AMV, user *arn.User)
|
||||
.amv-footer
|
||||
if amv.Title.ByUser(user) == ""
|
||||
@ -13,6 +20,13 @@ component AMVFooter(amv *arn.AMV, user *arn.User)
|
||||
else
|
||||
a(href=amv.Link())= amv.Title.ByUser(user)
|
||||
span posted
|
||||
span.utc-date(data-date=amv.Created)
|
||||
span.utc-date.no-tip(data-date=amv.Created)
|
||||
span by
|
||||
a(href=amv.Creator().Link())= amv.Creator().Nick + " "
|
||||
a(href=amv.Creator().Link())= amv.Creator().Nick + " "
|
||||
|
||||
component AMVMiniFooter(amv *arn.AMV, user *arn.User)
|
||||
.amv-footer
|
||||
if amv.Title.ByUser(user) == ""
|
||||
a(href=amv.Link() + "/edit") untitled
|
||||
else
|
||||
a(href=amv.Link())= amv.Title.ByUser(user)
|
@ -3,14 +3,38 @@ component Quote(quote *arn.Quote)
|
||||
QuoteContent(quote)
|
||||
QuoteFooter(quote)
|
||||
|
||||
component QuotePreview(quote *arn.Quote)
|
||||
.quote.mountable
|
||||
QuoteContentPreview(quote)
|
||||
QuoteFooter(quote)
|
||||
|
||||
component QuoteContent(quote *arn.Quote)
|
||||
.quote-content
|
||||
a.quotation(href=quote.Link())
|
||||
blockquote!= markdown.Render(quote.Text.English)
|
||||
QuoteText(quote)
|
||||
|
||||
if quote.CharacterID != "" && quote.Character() != nil
|
||||
footer.quote-character
|
||||
CharacterSmall(quote.Character())
|
||||
QuoteCharacter(quote)
|
||||
|
||||
component QuoteContentPreview(quote *arn.Quote)
|
||||
.quote-content
|
||||
a.quotation(href=quote.Link())
|
||||
QuoteTextPreview(quote)
|
||||
|
||||
QuoteCharacter(quote)
|
||||
|
||||
component QuoteText(quote *arn.Quote)
|
||||
blockquote!= utils.RenderQuoteText(quote.Text.English)
|
||||
|
||||
component QuoteCharacter(quote *arn.Quote)
|
||||
if quote.CharacterID != "" && quote.Character() != nil
|
||||
footer.quote-character
|
||||
CharacterSmall(quote.Character())
|
||||
|
||||
component QuoteTextPreview(quote *arn.Quote)
|
||||
if len(quote.Text.English) > 170
|
||||
blockquote!= utils.RenderQuoteText(quote.Text.English[:167] + "...")
|
||||
else
|
||||
blockquote!= utils.RenderQuoteText(quote.Text.English)
|
||||
|
||||
component QuoteFooter(quote *arn.Quote)
|
||||
.quote-footer
|
||||
|
@ -3,6 +3,11 @@ component SoundTrack(track *arn.SoundTrack)
|
||||
SoundTrackContent(track)
|
||||
SoundTrackFooter(track)
|
||||
|
||||
component SoundTrackMini(track *arn.SoundTrack)
|
||||
.soundtrack.mountable(id=track.ID)
|
||||
SoundTrackContent(track)
|
||||
SoundTrackMiniFooter(track)
|
||||
|
||||
component SoundTrackContent(track *arn.SoundTrack)
|
||||
.soundtrack-content
|
||||
if track.MainAnime() != nil
|
||||
@ -37,5 +42,12 @@ component SoundTrackFooter(track *arn.SoundTrack)
|
||||
span by
|
||||
a(href=track.Creator().Link())= track.Creator().Nick + " "
|
||||
|
||||
component SoundTrackMiniFooter(track *arn.SoundTrack)
|
||||
.soundtrack-footer
|
||||
if track.Title.ByUser(nil) == ""
|
||||
a(href=track.Link() + "/edit") untitled
|
||||
else
|
||||
a(href=track.Link())= track.Title.ByUser(nil)
|
||||
|
||||
component ExternalMedia(media *arn.ExternalMedia)
|
||||
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")
|
Reference in New Issue
Block a user