package templates
import (
"github.com/maid-zone/soundcloak/lib/sc"
"net/url"
"strconv"
"strings"
)
templ PlaylistHeader(p sc.Playlist) {
}
templ Playlist(p sc.Playlist) {
if p.Artwork != "" {
}
{ p.Description }
{ strconv.FormatInt(p.TrackCount, 10) } tracks
}
}
}
Tags: { strings.Join(sc.TagListParser(p.TagList), ", ") }
}{ strconv.FormatInt(p.Likes, 10) } likes
Created: { p.CreatedAt }
Last modified: { p.LastModified }
no more results
} } else { for _, playlist := range p.Collection { if playlist.Artwork != "" {
}
}
}
if p.Total != 0 && len(p.Collection) != 0 && p.Next != "" {
more playlists
}
}