summaryrefslogtreecommitdiff
path: root/views/info.pug
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/info.pug
parent6bc0c7f7352779ff3b39e5053ca62f332e4228e7 (diff)
downloadserver-47446095ce57908dd4d83452a9430905e9fcc263.tar.gz
Limit number of games shown on public games page.
Diffstat (limited to 'views/info.pug')
-rw-r--r--views/info.pug10
1 files changed, 5 insertions, 5 deletions
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