Added tag filter for soundtracks
This commit is contained in:
@ -20,11 +20,15 @@ func Best(ctx *aero.Context) string {
|
||||
|
||||
arn.SortSoundTracksPopularFirst(tracks)
|
||||
|
||||
// Limit the number of displayed tracks
|
||||
loadMoreIndex := 0
|
||||
|
||||
if len(tracks) > maxTracks {
|
||||
tracks = tracks[:maxTracks]
|
||||
loadMoreIndex = maxTracks
|
||||
}
|
||||
|
||||
return ctx.HTML(components.SoundTracks(tracks, maxTracks, user))
|
||||
return ctx.HTML(components.SoundTracks(tracks, loadMoreIndex, "", user))
|
||||
}
|
||||
|
||||
// BestFrom renders the soundtracks from the given index.
|
||||
|
Reference in New Issue
Block a user