summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-05 21:54:37 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-05 21:54:37 +0100
commit3682e456846d14f827a2f736e08b93aba0076540 (patch)
treeff598ed6abc3a5e0e24c184fedd2c950d94247c6 /views
parent7986145f941bfb5a898c91eb175e3a740d663ea0 (diff)
downloadserver-3682e456846d14f827a2f736e08b93aba0076540.tar.gz
Improve tournament sorting order.
Diffstat (limited to 'views')
-rw-r--r--views/head.pug2
-rw-r--r--views/tm_list.pug20
2 files changed, 5 insertions, 17 deletions
diff --git a/views/head.pug b/views/head.pug
index c3689c0..3792429 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -166,7 +166,7 @@ mixin poollist(list, title, icon)
if title
thead
tr
- th= title
+ th!= title
td= icon
tbody
each pool in list
diff --git a/views/tm_list.pug b/views/tm_list.pug
index 4f7c147..bc7fd83 100644
--- a/views/tm_list.pug
+++ b/views/tm_list.pug
@@ -11,20 +11,8 @@ html
p See <a href="/docs/tournaments.html">tournament information</a>.
- if 0
- dl
- each seeds, title_id in seeds_by_title
- dt= TITLE_NAME[title_id]
- each seed in seeds
- dd
- a(href="/tm/seed/" + seed.seed_name)= seed.seed_name
- | (#{seed.queue_size}/#{seed.pool_size})
- if user && seed.is_queued
- | &#x1f3ab;
- if 0
- each seeds, title_id in seeds_by_title
- +seedlist(seeds, TITLE_NAME[title_id])
- if 1
- +seedlist(seeds, "Mini Cup")
+ +seedlist(seeds, "Mini Cup")
- +poollist(active_pools, "Active")
+ h2 Active
+ each pools, seed_name in pools_by_seed
+ +poollist(pools, `<a href="/tm/seed/${seed_name}">${seed_name}</a>`)