31 lines
837 B
Plaintext
31 lines
837 B
Plaintext
component SoundTracks(tracks []*arn.SoundTrack, loadMoreIndex int, user *arn.User)
|
|
h1.page-title Soundtracks
|
|
|
|
SoundTracksTabs
|
|
|
|
.corner-buttons
|
|
if user != nil
|
|
if user.DraftIndex().SoundTrackID == ""
|
|
button.action(data-action="newObject", data-trigger="click", data-type="soundtrack")
|
|
Icon("plus")
|
|
span Add soundtrack
|
|
else
|
|
a.button.ajax(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit")
|
|
Icon("pencil")
|
|
span Edit draft
|
|
|
|
#load-more-target.soundtracks
|
|
SoundTracksScrollable(tracks, user)
|
|
|
|
if loadMoreIndex != 0
|
|
.buttons
|
|
LoadMore(loadMoreIndex)
|
|
|
|
component SoundTracksScrollable(tracks []*arn.SoundTrack, user *arn.User)
|
|
each track in tracks
|
|
SoundTrack(track)
|
|
|
|
component SoundTracksTabs
|
|
.tabs
|
|
Tab("Latest", "music", "/soundtracks")
|
|
Tab("Best", "heart", "/soundtracks/best") |