From 06f757c23d0d9f7a2b86f6c828f886ee8e642e03 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Jun 2022 20:40:25 +0200 Subject: Clean up game list logic. --- views/games_public.pug | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views/games_public.pug') diff --git a/views/games_public.pug b/views/games_public.pug index 44b250d..a3b1407 100644 --- a/views/games_public.pug +++ b/views/games_public.pug @@ -1,11 +1,15 @@ //- vim:ts=4:sw=4: +- let open_games = games.filter(game => game.status === 0 && !game.is_ready) +- let ready_games = games.filter(game => game.status === 0 && game.is_ready) +- let replacement_games = games.filter(game => game.status === 1 && !game.is_ready) +- let active_games = games.filter(game => game.status === 1 && game.is_ready) doctype html html head include head title= SITE_NAME if user - meta(http-equiv="refresh" content=600) + meta(http-equiv="refresh" content=900) body include header article -- cgit v1.2.3