29 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-06-27 21:33:21 +00:00
component SoundTrack(track *arn.SoundTrack)
2017-06-27 22:16:45 +00:00
SoundTrackMedia(track, track.Media[0])
component SoundTrackMedia(track *arn.SoundTrack, media *arn.ExternalMedia)
2017-06-27 21:33:21 +00:00
.sound-track.mountable(id=track.ID)
2017-10-12 15:52:46 +00:00
SoundTrackContent(track, media)
SoundTrackFooter(track)
component SoundTrackContent(track *arn.SoundTrack, media *arn.ExternalMedia)
.sound-track-content
if track.MainAnime() != nil
2017-06-27 21:33:21 +00:00
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
2017-07-17 22:04:43 +00:00
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
2017-10-12 15:52:46 +00:00
ExternalMedia(media)
component SoundTrackFooter(track *arn.SoundTrack)
.sound-track-footer
if track.Title == ""
a.ajax(href=track.Link() + "/edit") untitled
else
a.ajax(href=track.Link())= track.Title
2017-10-16 08:22:22 +00:00
span posted
span.utc-date(data-date=track.Created)
span by
2017-10-18 16:18:15 +00:00
a.ajax(href=track.Creator().Link())= track.Creator().Nick + " "
2017-10-12 15:52:46 +00:00
component ExternalMedia(media *arn.ExternalMedia)
iframe.lazy(data-src=media.EmbedLink(), allowfullscreen="allowfullscreen")