23 lines
898 B
Plaintext
Raw Normal View History

2017-06-27 11:46:29 +00:00
component Music(tracks []*arn.SoundTrack)
2017-06-27 12:56:22 +00:00
h2 Soundtracks
.music-buttons
a.button.ajax(href="/new/soundtrack")
Icon("plus")
span Add soundtrack
2017-06-27 11:06:19 +00:00
2017-06-27 11:46:29 +00:00
.sound-tracks
each track in tracks
2017-06-27 15:51:15 +00:00
SoundTrack(track)
component SoundTrack(track *arn.SoundTrack)
2017-06-27 16:43:13 +00:00
.sound-track.mountable(id=track.ID)
.sound-track-content
a.sound-track-anime-link.ajax(href="/anime/" + track.MainAnime().ID)
img.sound-track-anime-image.lazy(data-src=track.MainAnime().Image.Small, alt=track.MainAnime().Title.Canonical, title=track.MainAnime().Title.Canonical)
iframe.lazy(data-src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/" + track.Media[0].ServiceID + "?auto_play=false&hide_related=true&show_comments=true&show_user=true&show_reposts=false&visual=true")
2017-06-27 15:51:15 +00:00
2017-06-27 16:43:13 +00:00
.sound-track-footer
span posted by
a.ajax(href=track.CreatedByUser().Link())= track.CreatedByUser().Nick