summaryrefslogtreecommitdiff
path: root/views/info.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-08 21:53:40 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-09 17:42:23 +0200
commitff4bc953f16002befbd6cf8dd120a96cfeca26fe (patch)
tree0aef045b9338a3bb1ac522fefb557bf8f54d746b /views/info.pug
parent68df9a26cda411be54403883baa752c38e15e797 (diff)
downloadserver-ff4bc953f16002befbd6cf8dd120a96cfeca26fe.tar.gz
Allow users to leave and join active games.
Add "Need replacement" list of games.
Diffstat (limited to 'views/info.pug')
-rw-r--r--views/info.pug10
1 files changed, 7 insertions, 3 deletions
diff --git a/views/info.pug b/views/info.pug
index 47367ab..785ee91 100644
--- a/views/info.pug
+++ b/views/info.pug
@@ -19,9 +19,13 @@ html
p Read more about the game on #[a(href="https://boardgamegeek.com/boardgame/"+title.bgg) boardgamegeek.com].
- h2 Open games
+ h2 Open
+gametable(0,open_games,1)
+ if replacement_games.length > 0
+ h2 Need replacement
+ +gametable(0, replacement_games)
+
p
a(href="/create/"+title.title_id) Create a new game
@@ -30,9 +34,9 @@ html
+gametable(0,ready_games,1)
if active_games.length > 0
- h2 Active games
+ h2 Active
+gametable(1,active_games,1)
if finished_games.length > 0
- h2 Finished games
+ h2 Finished
+gametable(2,finished_games,1)