diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-04 19:19:15 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-04 19:19:48 +0100 |
commit | 134e343918a6312e533f66993b12563129b8afa8 (patch) | |
tree | a5a8d88ed370c1cce4a8885ee6b4fb1013b3c7a0 /views/games_active.pug | |
parent | 243b7bdb7b82eba14ff2ae682134e98d6366bff6 (diff) | |
download | server-134e343918a6312e533f66993b12563129b8afa8.tar.gz |
show waiting game count in title of active games page
Diffstat (limited to 'views/games_active.pug')
-rw-r--r-- | views/games_active.pug | 5 |
1 files changed, 4 insertions, 1 deletions
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(){} |