mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2026-01-04 01:49:37 +05:00
paginate large playlists
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user