From 6407378d92eb8880e35e8ee33e1801136a1a44a7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 10 Sep 2023 21:05:59 +0200 Subject: Set player_count in database for faster and easier logic. Track ready to start and unjoined games in "active" header. --- views/join.pug | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'views/join.pug') 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: #{game.owner_name} (private) - else - | Owner: #{game.owner_name} + + if game.owner_id + div + if game.is_private + | Owner: #{game.owner_name} (private) + else + | Owner: #{game.owner_name} div Created: #{game.ctime} unless game.mtime === "never" -- cgit v1.2.3