}
}
diff --git a/templates/playlist.templ b/templates/playlist.templ
index 846b4dd..049bd11 100644
--- a/templates/playlist.templ
+++ b/templates/playlist.templ
@@ -38,43 +38,44 @@ templ PlaylistItem(playlist *sc.Playlist, showUsername bool) {
}
templ Playlist(prefs cfg.Preferences, p sc.Playlist) {
- if p.Artwork != "" {
-
- for _, track := range p.Tracks {
- if *prefs.AutoplayNextTrack {
- @TrackItem(&track, true, playlist(track, p))
- } else {
- @TrackItem(&track, true, "")
+
+
+ if p.Artwork != "" {
+

}
- }
-
- if len(p.MissingTracks) != 0 {
-
more tracks
- }
-
- if p.TagList != "" {
-
Tags: { strings.Join(sc.TagListParser(p.TagList), ", ") }
- }
-
{ strconv.FormatInt(p.Likes, 10) } likes
-
- if p.CreatedAt != "" {
-
Created: { p.CreatedAt }
- }
- if p.LastModified != "" {
-
Last modified: { p.LastModified }
- }
+
{ p.Title }
+ @UserItem(&p.Author)
+
+
+ @Description(prefs, p.Description, nil)
+ if p.TagList != "" {
+
Tags: { strings.Join(sc.TagListParser(p.TagList), ", ") }
+ }
+
♥ { strconv.FormatInt(p.Likes, 10) }
+ if p.CreatedAt != "" {
+
Created: { p.CreatedAt }
+ }
+ if p.LastModified != "" {
+
Last modified: { p.LastModified }
+ }
+
+
+
{ strconv.FormatInt(p.TracksCount(), 10) } tracks
+
+ for _, track := range p.Tracks {
+ if *prefs.AutoplayNextTrack {
+ @TrackItem(&track, true, playlist(track, p))
+ } else {
+ @TrackItem(&track, true, "")
+ }
+ }
+
+ if len(p.MissingTracks) != 0 {
+
more tracks
+ }
+
}
diff --git a/templates/track.templ b/templates/track.templ
index 7659355..0103672 100644
--- a/templates/track.templ
+++ b/templates/track.templ
@@ -70,6 +70,11 @@ templ TrackPlayer(prefs cfg.Preferences, track sc.Track, stream string, displayE
if *prefs.Player == cfg.NonePlayer {
{{ return }}
}
+ if track.Policy == sc.PolicySnip {
+
+
⚠ Only a 30-second snippet is available.
+
+ }
if displayErr == "" {
{{ var audioPref string }}
if cfg.Restream && *prefs.Player == cfg.RestreamPlayer {
@@ -101,11 +106,6 @@ templ TrackPlayer(prefs cfg.Preferences, track sc.Track, stream string, displayE
}
}
- if track.Policy == sc.PolicySnip {
-
-
Only a 30-second snippet is available.
-
- }
if *prefs.ShowAudio {
if audioPref == cfg.AudioBest {