37 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-04-14 21:51:18 +00:00
component AMV(amv *arn.AMV, user *arn.User)
.amv.mountable
2018-04-19 13:04:25 +00:00
AMVVideo(amv)
2018-04-15 08:36:51 +00:00
AMVFooter(amv, user)
2018-04-19 13:04:25 +00:00
component AMVMini(amv *arn.AMV, user *arn.User)
.amv.mountable
AMVVideo(amv)
AMVMiniFooter(amv, user)
component AMVVideo(amv *arn.AMV)
2018-12-07 19:40:27 +00:00
.video-container(id=amv.ID, data-api="/api/amv/" + amv.ID)
2018-12-09 02:57:37 +00:00
video.video.lazy.action(data-action="toggleFullscreen", data-trigger="dblclick", data-id=amv.ID)
2019-08-28 01:07:50 +00:00
source(data-src=amv.VideoLink(), data-type="video/webm")
2018-04-19 13:04:25 +00:00
2018-12-07 00:54:17 +00:00
//- button.media-play-button
//- RawIcon("play")
2018-12-08 11:05:17 +00:00
VideoControls(amv.ID, amv.Info.Duration)
2018-12-07 00:54:17 +00:00
2018-04-15 08:36:51 +00:00
component AMVFooter(amv *arn.AMV, user *arn.User)
2019-09-01 07:39:17 +00:00
footer.amv-footer
2018-04-15 08:36:51 +00:00
if amv.Title.ByUser(user) == ""
a(href=amv.Link() + "/edit") untitled
else
a(href=amv.Link())= amv.Title.ByUser(user)
span posted
2018-04-19 13:04:25 +00:00
span.utc-date.no-tip(data-date=amv.Created)
2018-04-15 08:36:51 +00:00
span by
2018-04-19 13:04:25 +00:00
a(href=amv.Creator().Link())= amv.Creator().Nick + " "
component AMVMiniFooter(amv *arn.AMV, user *arn.User)
2019-09-01 07:39:17 +00:00
footer.amv-footer
2018-04-19 13:04:25 +00:00
if amv.Title.ByUser(user) == ""
a(href=amv.Link() + "/edit") untitled
else
a(href=amv.Link())= amv.Title.ByUser(user)