40 lines
896 B
Plaintext
40 lines
896 B
Plaintext
component Track(track *arn.SoundTrack)
|
|
SoundTrackTabs(track)
|
|
|
|
.sound-track-full-page
|
|
if track.Title == ""
|
|
h1.mountable untitled
|
|
else
|
|
h1.mountable= track.Title
|
|
|
|
.widget-form.sound-track-media-list
|
|
each media in track.Media
|
|
.widget.mountable
|
|
h3.widget-title= media.Service
|
|
.sound-track-media
|
|
ExternalMedia(media)
|
|
|
|
.widget.mountable
|
|
h3.widget-title Tags
|
|
ul
|
|
each tag in track.Tags
|
|
li= tag
|
|
|
|
.footer.text-center.mountable
|
|
if track.EditedBy != ""
|
|
span Edited
|
|
span.utc-date(data-date=track.Edited)
|
|
span by
|
|
span= track.EditedByUser().Nick
|
|
else
|
|
span Posted
|
|
span.utc-date(data-date=track.Created)
|
|
span by
|
|
span= track.CreatedByUser().Nick
|
|
|
|
span .
|
|
|
|
component SoundTrackTabs(track *arn.SoundTrack)
|
|
.tabs
|
|
Tab("Soundtrack", "music", track.Link())
|
|
Tab("Edit", "pencil", track.Link() + "/edit") |