From 2b47748c30fc62be81c664d5261b9b95ea7ffb59 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 00:04:53 +0400 Subject: [PATCH] Show most listened song on a page. --- web/templates/index.pug | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/templates/index.pug b/web/templates/index.pug index a467546..874962a 100644 --- a/web/templates/index.pug +++ b/web/templates/index.pug @@ -55,6 +55,9 @@ html(lang='en') else td td= song.Song + - ml := radio.MostListened() + if ml.Song != "" + p Most listened song was "#{ml.Song}" on #{ml.DateString()} with #[b #{ml.Listeners}] listeners. section h2 Privacy statements p Logs are collected and include access date and time, IP-address, User-Agent, referer URL, request. This website makes use of JavaScript to update a radio status and last #{songsNum} songs list.