Okey, let's get rid of mixin.
This commit is contained in:
parent
07e4542a36
commit
5273131f10
@ -1,9 +1,3 @@
|
||||
mixin radioStatus(start_date, iso)
|
||||
if start_date != 'n/a'
|
||||
p #[span#radio-status On-air since #[time(datetime=iso)= start_date]]
|
||||
else
|
||||
p #[span#radio-status Radio is offline.]
|
||||
|
||||
doctype html
|
||||
html(lang='en')
|
||||
head
|
||||
@ -36,7 +30,10 @@ html(lang='en')
|
||||
audio(preload='none' controls='')
|
||||
source(src='/live/stream.ogg' type='audio/ogg')
|
||||
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!
|
||||
+radioStatus(.Status.ServerStartDate, .Status.ServerStartISO8601)
|
||||
if .Status.ServerStartDate != 'n/a'
|
||||
p #[span#radio-status On-air since #[time(datetime=.Status.ServerStartISO8601)= .Status.ServerStartDate]]
|
||||
else
|
||||
p #[span#radio-status Radio is offline.]
|
||||
p Now playing: #[span#radio-song= .Status.Song()]
|
||||
p Current/peak listeners: #[span#radio-listeners= .Status.Listeners] / #[span#radio-listener-peak= .Status.ListenerPeak]
|
||||
p
|
||||
|
Loading…
Reference in New Issue
Block a user