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(song.StartAt, r).Format("15:04") } | if song.PeakListeners != 0 {{ strconv.FormatInt(song.Listeners, 10) }/{ strconv.FormatInt(song.PeakListeners, 10) } | } else {} | { song.Artist } - { song.Title } |