diff --git a/web/index.templ b/web/index.templ
index 19a8f5c..4affe8b 100644
--- a/web/index.templ
+++ b/web/index.templ
@@ -97,18 +97,16 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
- if sl != nil && len(sl) != 0 {
- for i := 0; i < len(sl); i++ {
-
- { utils.ToClientTimezone(sl[i].StartAt, r).Format("15:04") } |
- if sl[i].PeakListeners != 0 {
- { strconv.FormatInt(sl[i].Listeners, 10) }/{ strconv.FormatInt(sl[i].PeakListeners, 10) } |
+ for _, song := range sl {
+
+ { utils.ToClientTimezone(song.StartAt, r).Format("15:04") } |
+ if song.PeakListeners != 0 {
+ { strconv.FormatInt(song.Listeners, 10) }/{ strconv.FormatInt(song.PeakListeners, 10) } |
} else {
|
}
- { sl[i].Artist } - { sl[i].Title } |
-
- }
+ { song.Artist } - { song.Title } |
+
}