2017-06-27 22:16:45 +00:00
|
|
|
component Track(track *arn.SoundTrack)
|
2017-10-12 15:52:46 +00:00
|
|
|
SoundTrackTabs(track)
|
|
|
|
|
2017-10-12 22:44:19 +00:00
|
|
|
.sound-track-full-page
|
|
|
|
if track.Title == ""
|
|
|
|
h1.mountable untitled
|
|
|
|
else
|
|
|
|
h1.mountable= track.Title
|
2017-06-27 22:16:45 +00:00
|
|
|
|
2017-10-12 22:44:19 +00:00
|
|
|
.widget-form.sound-track-media-list
|
|
|
|
each media in track.Media
|
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title= media.Service
|
|
|
|
.sound-track-media
|
|
|
|
ExternalMedia(media)
|
2017-10-15 18:19:45 +00:00
|
|
|
|
2017-10-15 23:26:41 +00:00
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Anime
|
|
|
|
|
|
|
|
.sound-track-anime-list
|
|
|
|
each anime in track.Anime()
|
|
|
|
a.sound-track-anime-list-item.ajax(href=anime.Link(), title=anime.Title.Canonical)
|
|
|
|
img.sound-track-anime-list-item-image.lazy(data-src=anime.Image.Tiny, alt=anime.Title.Canonical)
|
|
|
|
|
2017-10-15 18:19:45 +00:00
|
|
|
.widget.mountable
|
|
|
|
h3.widget-title Tags
|
2017-10-15 23:35:28 +00:00
|
|
|
.tags
|
2017-10-15 18:19:45 +00:00
|
|
|
each tag in track.Tags
|
2017-10-15 23:35:28 +00:00
|
|
|
.tag= tag
|
2017-10-12 15:52:46 +00:00
|
|
|
|
2017-10-12 22:44:19 +00:00
|
|
|
.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 .
|
2017-10-12 15:52:46 +00:00
|
|
|
|
|
|
|
component SoundTrackTabs(track *arn.SoundTrack)
|
|
|
|
.tabs
|
|
|
|
Tab("Soundtrack", "music", track.Link())
|
|
|
|
Tab("Edit", "pencil", track.Link() + "/edit")
|