diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-01 21:17:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-03-01 21:17:48 +0100 |
commit | fab1401922290364fcd260d7390701b46aa3eb75 (patch) | |
tree | 364e101760671e44246729a660e48df5ffb5532f /views/games_public.pug | |
parent | ba9f82e2344bbbda2d5aa5d81b41a9b52624a4c3 (diff) | |
download | server-fab1401922290364fcd260d7390701b46aa3eb75.tar.gz |
Separate ready and full status for display in game lists.
Diffstat (limited to 'views/games_public.pug')
-rw-r--r-- | views/games_public.pug | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/games_public.pug b/views/games_public.pug index b91dd61..eb188be 100644 --- a/views/games_public.pug +++ b/views/games_public.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 = games0.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 = games0.filter(game => game.status === 1 && !game.is_full) +- let active_games = games1.filter(game => game.status === 1 && game.is_full) doctype html html head @@ -29,7 +29,7 @@ html +gamelist(replacement_games) if ready_games.length > 0 - h2 Ready to start + h2 Ready +gamelist(ready_games) if active_games.length > 0 |