summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-02-21 20:08:49 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-23 12:58:45 +0100
commit47446095ce57908dd4d83452a9430905e9fcc263 (patch)
treedf824bace1d269721f03068f089455760b764e19 /views
parent6bc0c7f7352779ff3b39e5053ca62f332e4228e7 (diff)
downloadserver-47446095ce57908dd4d83452a9430905e9fcc263.tar.gz
Limit number of games shown on public games page.
Diffstat (limited to 'views')
-rw-r--r--views/games_public.pug8
-rw-r--r--views/info.pug10
2 files changed, 9 insertions, 9 deletions
diff --git a/views/games_public.pug b/views/games_public.pug
index e1a5387..b91dd61 100644
--- a/views/games_public.pug
+++ b/views/games_public.pug
@@ -1,8 +1,8 @@
//- 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)
+- 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)
doctype html
html
head
diff --git a/views/info.pug b/views/info.pug
index d60f79f..8eb1d40 100644
--- a/views/info.pug
+++ b/views/info.pug
@@ -1,9 +1,9 @@
//- 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)
-- let finished_games = games.filter(game => game.status === 2)
+- 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 finished_games = games2
doctype html
html
head