paginate large playlists

This commit is contained in:
Laptop
2024-09-15 13:10:11 +03:00
parent 41e7a70b94
commit 9bfd873c9c
8 changed files with 73 additions and 24 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/maid-zone/soundcloak/lib/sc"
"strings"
"strconv"
"net/url"
)
templ PlaylistEmbed(p sc.Playlist) {
@@ -29,6 +30,9 @@ templ Playlist(p sc.Playlist) {
}
}
</div>
if len(p.MissingTracks) != 0 {
<a href={templ.URL("?pagination="+url.QueryEscape(p.MissingTracks))} rel="noreferrer">more tracks</a>
}
<div>
if p.TagList != "" {