summaryrefslogtreecommitdiff
path: root/views/games_public.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-06-11 02:06:51 +0200
committerTor Andersson <tor@ccxvii.net>2022-06-11 13:36:18 +0200
commit8175df9f9af2393964f053af5a98851c376e1675 (patch)
treea08a63eadf33599dc186a3586ea656bf2724969b /views/games_public.pug
parenta747178b4336480feee79d8f90afc5a2ab6ffc87 (diff)
downloadserver-8175df9f9af2393964f053af5a98851c376e1675.tar.gz
Use game boxes instead of tables.
Diffstat (limited to 'views/games_public.pug')
-rw-r--r--views/games_public.pug14
1 files changed, 10 insertions, 4 deletions
diff --git a/views/games_public.pug b/views/games_public.pug
index 4af36bd..a681419 100644
--- a/views/games_public.pug
+++ b/views/games_public.pug
@@ -12,15 +12,21 @@ html
h1 All Public Games
h2 Open
- +gametable(0, open_games)
+ if open_games.length > 0
+ +gamelist(open_games, "open")
+ else
+ p No open games.
if replacement_games.length > 0
h2 Need replacement
- +gametable(0, replacement_games)
+ +gamelist(replacement_games, "replacement")
if ready_games.length > 0
h2 Ready to start
- +gametable(0, ready_games)
+ +gamelist(ready_games, "ready")
h2 Active
- +gametable(1, active_games)
+ if active_games.length > 0
+ +gamelist(active_games, "active")
+ else
+ p No open games.