From 134e343918a6312e533f66993b12563129b8afa8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 4 Feb 2025 19:19:15 +0100 Subject: show waiting game count in title of active games page --- views/games_active.pug | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/games_active.pug b/views/games_active.pug index 6046b9b..bac7c67 100644 --- a/views/games_active.pug +++ b/views/games_active.pug @@ -11,7 +11,10 @@ doctype html html head include head - title= SITE_NAME + if user.waiting > 0 + title= "Games (" + user.waiting + ")" + else + title Games if active_games.length > 0 meta(http-equiv="refresh" content=600) script window.onunload=function(){} -- cgit v1.2.3