Keep last songs section even if there are no songs. Otherwise a JS code will be broken without further bloating.
This commit is contained in:
parent
0409da3ca3
commit
1ebecc91d9
@ -44,18 +44,17 @@ html(lang='en')
|
||||
p Current/peak listeners: #[span#radio-listeners #{status.Listeners}] / #[span#radio-listener-peak #{status.ListenerPeak}]
|
||||
p
|
||||
small Notice: information updates every 45 seconds. But you can #[button(id='btn-update') update] it forcibly.
|
||||
if len(*songs) > 0
|
||||
section
|
||||
h2 Last #{songsNum} songs
|
||||
table#last-played
|
||||
each song in *songs
|
||||
tr
|
||||
td= song.Time
|
||||
if song.Listeners != "0"
|
||||
td= song.Listeners
|
||||
else
|
||||
td
|
||||
td= song.Song
|
||||
section
|
||||
h2 Last #{songsNum} songs
|
||||
table#last-played
|
||||
each song in *songs
|
||||
tr
|
||||
td= song.Time
|
||||
if song.Listeners != "0"
|
||||
td= song.Listeners
|
||||
else
|
||||
td
|
||||
td= song.Song
|
||||
section
|
||||
h2 Privacy statements
|
||||
p 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 #{songsNum} songs list.
|
||||
|
Loading…
Reference in New Issue
Block a user