package web import "dwelling-radio/internal/radio" import "strconv" import "dwelling-radio/pkg/utils" import "net/http" templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.ListenerCounter, r *http.Request) {
Listeners: { strconv.FormatInt(lstnrs.Current(), 10) } Duration: { curSong.DurationString() }
Song: { curSong.Artist } - { curSong.Title }
} else {Listeners: { strconv.FormatInt(lstnrs.Current(), 10) } Duration: 0:00
Song: -
}Start | O/P | Song | |
{ 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) } | } else {} | { sl[i].Artist } - { sl[i].Title } |