1
0

WTF this Jade doesn't support comparing?

This commit is contained in:
Alexander Andreev 2022-03-08 03:04:56 +04:00
parent 89c587e5ac
commit 092d07a3a6
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -30,7 +30,8 @@ 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].
unless .Status.ServerStartDate = 'n/a' - let isDateNA = .Status.ServerStartDate == 'n/a'
if !isDateNA
p #[span#radio-status On-air since #[time(datetime=.Status.ServerStartISO8601)= .Status.ServerStartDate]] p #[span#radio-status On-air since #[time(datetime=.Status.ServerStartISO8601)= .Status.ServerStartDate]]
else else
p #[span#radio-status Radio is offline.] p #[span#radio-status Radio is offline.]