// Code generated by "jade.go"; DO NOT EDIT.
package web
import (
"dwelling-radio/internal/radio"
"io"
)
const (
index__0 = `
Arav's dwelling / Radio `
index__6 = `The largest number of simultaneous listeners was 7 at 19 February 2022 , and the song was "Röyksopp - 49 Percent".
Privacy statements Logs are collected and include access date and time, IP-address, User-Agent, referer URL, request. This website makes use of JavaScript to update a radio status and last 10 songs list.
`
index__7 = `On-air since `
index__9 = `
`
index__10 = `Radio is offline.
`
index__11 = ``
index__13 = ``
index__14 = ` `
index__15 = ``
index__16 = ` `
index__19 = ` `
)
func Index(mainSite string, status *radio.IcecastStatus, songs *[]radio.Song, wr io.Writer) {
buffer := &WriterAsBuffer{wr}
buffer.WriteString(index__0)
WriteEscString(mainSite, buffer)
buffer.WriteString(index__1)
if status.ServerStartDate != "" {
buffer.WriteString(index__7)
WriteEscString(status.ServerStartISO8601, buffer)
buffer.WriteString(index__8)
WriteEscString(status.ServerStartDate, buffer)
buffer.WriteString(index__9)
} else {
buffer.WriteString(index__10)
}
buffer.WriteString(index__2)
WriteEscString(status.SongName, buffer)
buffer.WriteString(index__3)
WriteInt(int64(status.Listeners), buffer)
buffer.WriteString(index__4)
WriteInt(int64(status.ListenerPeak), buffer)
buffer.WriteString(index__5)
if len(*songs) > 0 {
buffer.WriteString(index__11)
for _, song := range *songs {
buffer.WriteString(index__13)
WriteEscString(song.Time, buffer)
buffer.WriteString(index__14)
if song.Listeners != "0" {
buffer.WriteString(index__15)
WriteEscString(song.Listeners, buffer)
buffer.WriteString(index__14)
} else {
buffer.WriteString(index__19)
}
buffer.WriteString(index__15)
WriteEscString(song.Song, buffer)
buffer.WriteString(index__16)
}
buffer.WriteString(index__12)
}
buffer.WriteString(index__6)
}