From f42c239b2715544f38e9584036c192413cbef609 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 10 Mar 2022 00:37:18 +0400 Subject: [PATCH] Uhm, okay. it is actually .Songs. --- internal/handlers/web/templates/index.jade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/handlers/web/templates/index.jade b/internal/handlers/web/templates/index.jade index 71cca58..7f2a621 100644 --- a/internal/handlers/web/templates/index.jade +++ b/internal/handlers/web/templates/index.jade @@ -39,15 +39,16 @@ 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 time, artist, title in .Status.LastSongs + each time, artist, title in .Songs tr td #{time} td #{artist} td #{title} + else + p Nothing to show here. 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