From 8019fe4e78a2ce4b03f3b2d2d11458f59a0224ad Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 17 Nov 2024 23:13:44 +0100 Subject: handle deleted players in tournament pool display --- views/tm_pool.pug | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'views/tm_pool.pug') 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" #{row.name} else | null @@ -109,7 +109,7 @@ html tr td= rx+1 td - if row.name + if row.name && row.name !== "null" #{row.name} 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 -- cgit v1.2.3