32 lines
758 B
Plaintext
Raw Normal View History

2018-04-14 21:23:00 +00:00
component AMVs(amvs []*arn.AMV, nextIndex int, tag string, user *arn.User)
h1.page-title AMVs
AMVsTabs(tag)
.corner-buttons
if user != nil
if user.DraftIndex().AMVID == ""
button.action(data-action="newObject", data-trigger="click", data-type="amv")
Icon("plus")
span Add AMV
else
a.button(href="/amv/" + user.DraftIndex().AMVID + "/edit")
Icon("pencil")
span Edit draft
2018-04-15 09:14:11 +00:00
#load-more-target.amvs.amvs-page
2018-04-14 21:23:00 +00:00
AMVsScrollable(amvs, user)
if nextIndex != -1
.buttons
LoadMore(nextIndex)
component AMVsScrollable(amvs []*arn.AMV, user *arn.User)
each amv in amvs
AMV(amv, user)
component AMVsTabs(tag string)
.tab-groups
.tabs
Tab("Latest", "video-camera", "/amvs")
Tab("Best", "heart", "/amvs/best")