diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-06-11 02:06:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-06-11 13:36:18 +0200 |
commit | 8175df9f9af2393964f053af5a98851c376e1675 (patch) | |
tree | a08a63eadf33599dc186a3586ea656bf2724969b /views/info.pug | |
parent | a747178b4336480feee79d8f90afc5a2ab6ffc87 (diff) | |
download | server-8175df9f9af2393964f053af5a98851c376e1675.tar.gz |
Use game boxes instead of tables.
Diffstat (limited to 'views/info.pug')
-rw-r--r-- | views/info.pug | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/views/info.pug b/views/info.pug index 785ee91..c7083ef 100644 --- a/views/info.pug +++ b/views/info.pug @@ -20,23 +20,26 @@ html p Read more about the game on #[a(href="https://boardgamegeek.com/boardgame/"+title.bgg) boardgamegeek.com]. h2 Open - +gametable(0,open_games,1) + if open_games.length > 0 + +gamelist(open_games, "open", true) + else + p No open games. if replacement_games.length > 0 h2 Need replacement - +gametable(0, replacement_games) + +gamelist(replacement_games, "replacement", true) p a(href="/create/"+title.title_id) Create a new game if ready_games.length > 0 h2 Ready to start - +gametable(0,ready_games,1) + +gamelist(ready_games, "ready", true) if active_games.length > 0 h2 Active - +gametable(1,active_games,1) + +gamelist(active_games, "active", true) if finished_games.length > 0 - h2 Finished - +gametable(2,finished_games,1) + h2 Recently finished + +gamelist(finished_games, "finished", true) |