17 lines
459 B
Plaintext

component SoundTracks(tracks []*arn.SoundTrack, user *arn.User)
h1 Soundtracks
.music-buttons
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
.sound-tracks
each track in tracks
SoundTrack(track)