diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-22 12:55:52 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-22 12:55:56 +0100 |
commit | 62ef50b1e0a8fe00e5c3de20e1bdb6ba88f92818 (patch) | |
tree | 0fc5fc096e02230358b640d6849703797c76ee09 | |
parent | 896708492fcf269f925850d874acd72cb6a25c55 (diff) | |
download | server-62ef50b1e0a8fe00e5c3de20e1bdb6ba88f92818.tar.gz |
Don't show all the active pools on the tournament index page.
-rw-r--r-- | server.js | 5 | ||||
-rw-r--r-- | views/tm_list.pug | 4 |
2 files changed, 1 insertions, 8 deletions
@@ -3159,10 +3159,7 @@ const TM_SELECT_SEED_READY_MINI_CUP = SQL(` app.get("/tm/list", function (req, res) { let seeds = TM_SEED_LIST_ALL.all(req.user ? req.user.user_id : 0) - let seeds_by_title = object_group_by(seeds, "title_id") - let active_pools = TM_POOL_LIST_ACTIVE.all() - let pools_by_seed = object_group_by(active_pools, "seed_name") - res.render("tm_list.pug", { user: req.user, seeds, seeds_by_title, active_pools, pools_by_seed }) + res.render("tm_list.pug", { user: req.user, seeds }) }) app.get("/tm/seed/:seed_name", function (req, res) { diff --git a/views/tm_list.pug b/views/tm_list.pug index bc7fd83..f5efa26 100644 --- a/views/tm_list.pug +++ b/views/tm_list.pug @@ -12,7 +12,3 @@ html p See <a href="/docs/tournaments.html">tournament information</a>. +seedlist(seeds, "Mini Cup") - - h2 Active - each pools, seed_name in pools_by_seed - +poollist(pools, `<a href="/tm/seed/${seed_name}">${seed_name}</a>`) |