From 38152642d80be35ecbe8155f4ca400388ef9f89e Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 8 Mar 2022 03:27:58 +0400 Subject: [PATCH] Interesting now function song is undefined. --- internal/handlers/web/templates/index.jade | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/handlers/web/templates/index.jade b/internal/handlers/web/templates/index.jade index 846587e..44e2903 100644 --- a/internal/handlers/web/templates/index.jade +++ b/internal/handlers/web/templates/index.jade @@ -39,15 +39,15 @@ 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 (.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