17 lines
459 B
Plaintext
Raw Normal View History

2017-10-15 19:11:12 +00:00
component SoundTracks(tracks []*arn.SoundTrack, user *arn.User)
2017-07-06 20:08:49 +00:00
h1 Soundtracks
2017-06-27 12:56:22 +00:00
.music-buttons
2017-10-15 19:11:12 +00:00
if user != nil
if user.DraftIndex().SoundTrackID == ""
button.action(data-action="newSoundTrack", data-trigger="click")
Icon("plus")
span Add soundtrack
else
a.button.ajax(href="/soundtrack/" + user.DraftIndex().SoundTrackID + "/edit")
Icon("pencil")
span Edit draft
2017-06-27 11:06:19 +00:00
2017-06-27 11:46:29 +00:00
.sound-tracks
each track in tracks
2017-06-27 21:33:21 +00:00
SoundTrack(track)