diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-10 21:05:59 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-09-13 20:06:36 +0200 |
commit | 6407378d92eb8880e35e8ee33e1801136a1a44a7 (patch) | |
tree | 9bac140875ba3ba3a29c8fee864b0eca8d922399 /views/header.pug | |
parent | 2da7e775f26043e0d475faf89d1fce03c798b1e3 (diff) | |
download | server-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.pug | 4 |
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 |