summaryrefslogtreecommitdiff
path: root/views/join.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/join.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/join.pug')
-rw-r--r--views/join.pug12
1 files changed, 7 insertions, 5 deletions
diff --git a/views/join.pug b/views/join.pug
index 0f9daef..2e6bf08 100644
--- a/views/join.pug
+++ b/views/join.pug
@@ -43,11 +43,13 @@ html
unless game.human_options === "None"
div Options: #{game.human_options}
- div
- if game.is_private
- | Owner: <a href="/user/#{game.owner_name}">#{game.owner_name}</a> (private)
- else
- | Owner: <a href="/user/#{game.owner_name}">#{game.owner_name}</a>
+
+ if game.owner_id
+ div
+ if game.is_private
+ | Owner: <a href="/user/#{game.owner_name}">#{game.owner_name}</a> (private)
+ else
+ | Owner: <a href="/user/#{game.owner_name}">#{game.owner_name}</a>
div Created: #{game.ctime}
unless game.mtime === "never"