1
0

Okey, let's get rid of mixin.

This commit is contained in:
Alexander Andreev 2022-03-08 02:44:21 +04:00
parent 07e4542a36
commit 5273131f10
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -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 doctype html
html(lang='en') html(lang='en')
head head
@ -36,7 +30,10 @@ html(lang='en')
audio(preload='none' controls='') audio(preload='none' controls='')
source(src='/live/stream.ogg' type='audio/ogg') 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]! | 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 Now playing: #[span#radio-song= .Status.Song()]
p Current/peak listeners: #[span#radio-listeners= .Status.Listeners] / #[span#radio-listener-peak= .Status.ListenerPeak] p Current/peak listeners: #[span#radio-listeners= .Status.Listeners] / #[span#radio-listener-peak= .Status.ListenerPeak]
p p