From fab1401922290364fcd260d7390701b46aa3eb75 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 Mar 2023 21:17:43 +0100 Subject: Separate ready and full status for display in game lists. --- views/info.pug | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'views/info.pug') diff --git a/views/info.pug b/views/info.pug index 8eb1d40..60eac7b 100644 --- a/views/info.pug +++ b/views/info.pug @@ -1,8 +1,8 @@ //- vim:ts=4:sw=4: -- let open_games = games0.filter(game => game.status === 0 && !game.is_ready) -- let ready_games = games0.filter(game => game.status === 0 && game.is_ready) -- let replacement_games = games1.filter(game => game.status === 1 && !game.is_ready) -- let active_games = games1.filter(game => game.status === 1 && game.is_ready) +- let open_games = games0.filter(game => game.status === 0 && !game.is_full) +- let ready_games = games0.filter(game => game.status === 0 && game.is_full) +- let replacement_games = games1.filter(game => game.status === 1 && !game.is_full) +- let active_games = games1.filter(game => game.status === 1 && game.is_full) - let finished_games = games2 doctype html html @@ -38,7 +38,7 @@ html a(href="/create/"+title.title_id) Create a new game if ready_games.length > 0 - h2 Ready to start + h2 Ready +gamelist(ready_games, true) if active_games.length > 0 -- cgit v1.2.3