diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-17 23:13:44 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-18 12:51:27 +0100 |
commit | 8019fe4e78a2ce4b03f3b2d2d11458f59a0224ad (patch) | |
tree | 78bc9de5c23d15482ec2e0b3839a3e4016efb461 /views | |
parent | 0316f4263bf43ef45a3b5f6a543a8f1e0347fb25 (diff) | |
download | server-8019fe4e78a2ce4b03f3b2d2d11458f59a0224ad.tar.gz |
handle deleted players in tournament pool display
Diffstat (limited to 'views')
-rw-r--r-- | views/tm_pool.pug | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/views/tm_pool.pug b/views/tm_pool.pug index 73a52e4..1690535 100644 --- a/views/tm_pool.pug +++ b/views/tm_pool.pug @@ -70,7 +70,7 @@ html tr td= rx+1 td - if row.name + if row.name && row.name !== "null" <a class="black" href="/user/#{row.name}">#{row.name}</a> else | null @@ -109,7 +109,7 @@ html tr td= rx+1 td - if row.name + if row.name && row.name !== "null" <a class="black" href="/user/#{row.name}">#{row.name}</a> else | null @@ -143,7 +143,10 @@ html each role in roles - var p = role_names[role] td - a.black(href="/user/"+p)= p + if p && p !== "null" + a.black(href="/user/"+p)= p + else + | null if game.status > 1 td.w.r |