21 lines
647 B
Plaintext
Raw Normal View History

2018-03-14 17:23:04 +00:00
component ProfileSoundTracks(tracks []*arn.SoundTrack, viewUser *arn.User, nextIndex int, user *arn.User, uri string)
2017-07-06 01:24:56 +00:00
ProfileHeader(viewUser, user, uri)
2017-07-03 15:21:00 +00:00
if strings.Contains(uri, "/added")
h1.page-title= "Tracks added by " + viewUser.Nick
else
h1.page-title= "Tracks liked by " + viewUser.Nick
2017-07-03 15:21:00 +00:00
if len(tracks) == 0
2018-03-14 15:33:42 +00:00
if strings.Contains(uri, "/added")
p.no-data.mountable= viewUser.Nick + " hasn't added any tracks yet."
else
p.no-data.mountable= viewUser.Nick + " hasn't liked any tracks yet."
2017-07-03 15:21:00 +00:00
else
#load-more-target.soundtracks
SoundTracksScrollable(tracks, user)
if nextIndex != -1
.buttons
LoadMore(nextIndex)
2017-06-27 18:12:08 +00:00