From abb4c91deedd4f927e686c67bea437c4dd70b288 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 10 Mar 2022 00:19:30 +0400 Subject: [PATCH] Uncomment even more in a template. --- internal/handlers/web/templates/index.jade | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/handlers/web/templates/index.jade b/internal/handlers/web/templates/index.jade index cd42c2d..3f3b116 100644 --- a/internal/handlers/web/templates/index.jade +++ b/internal/handlers/web/templates/index.jade @@ -36,18 +36,18 @@ html(lang='en') //- else //- p #[span#radio-status Radio is offline.] p Now playing: #[span#radio-song #{.Status.SongName}] - //- 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 small Notice: information updates every 45 seconds. But you can #[button(id='btn-update') update] it forcibly. - //- if (.Status.LastSongs) - //- section - //- h2 Last 10 songs - //- table#last-played - //- each song in .Status.Songs - //- tr - //- td= song.Time - //- td= song.Artist - //- td= song.Title + if (.Status.LastSongs) + section + h2 Last 10 songs + table#last-played + each song in .Status.Songs + tr + td= song.Time + td= song.Artist + td= song.Title section p The largest number of simultaneous listeners was #[b 7] at #[time(datetime='2022-02-19') 19 February 2022], and the song was "Röyksopp - 49 Percent". section