From 8175df9f9af2393964f053af5a98851c376e1675 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 11 Jun 2022 02:06:51 +0200 Subject: Use game boxes instead of tables. --- views/games_public.pug | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'views/games_public.pug') 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. -- cgit v1.2.3