17 lines
459 B
Plaintext
Raw Normal View History

2017-10-15 21:11:12 +02:00
component SoundTracks(tracks []*arn.SoundTrack, user *arn.User)
2017-07-06 22:08:49 +02:00
h1 Soundtracks
2017-06-27 14:56:22 +02:00
.music-buttons
2017-10-15 21:11:12 +02: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 13:06:19 +02:00
2017-06-27 13:46:29 +02:00
.sound-tracks
each track in tracks
2017-06-27 23:33:21 +02:00
SoundTrack(track)