summaryrefslogtreecommitdiff
path: root/views/header.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-10 21:05:59 +0200
committerTor Andersson <tor@ccxvii.net>2023-09-13 20:06:36 +0200
commit6407378d92eb8880e35e8ee33e1801136a1a44a7 (patch)
tree9bac140875ba3ba3a29c8fee864b0eca8d922399 /views/header.pug
parent2da7e775f26043e0d475faf89d1fce03c798b1e3 (diff)
downloadserver-6407378d92eb8880e35e8ee33e1801136a1a44a7.tar.gz
Set player_count in database for faster and easier logic.
Track ready to start and unjoined games in "active" header.
Diffstat (limited to 'views/header.pug')
-rw-r--r--views/header.pug4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/header.pug b/views/header.pug
index c417665..454c35a 100644
--- a/views/header.pug
+++ b/views/header.pug
@@ -7,8 +7,8 @@ header
if ENABLE_FORUM
a(href="/forum") Forum
a(href="/games/public") Public
- if user.active > 0
- a(href="/games/active") Games (#{user.active})
+ if user.waiting > 0
+ a(href="/games/active") Games (#{user.waiting})
else
a(href="/games/active") Games
a(href="/contacts") Friends