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) {
{ strconv.FormatInt(lstnrs.Current(), 10) } { curSong.DurationString() }
{ curSong.Artist } - { curSong.Title }
} else {{ strconv.FormatInt(lstnrs.Current(), 10) } 0:00
}
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 } |