From fab1401922290364fcd260d7390701b46aa3eb75 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 1 Mar 2023 21:17:43 +0100 Subject: Separate ready and full status for display in game lists. --- views/head.pug | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'views/head.pug') diff --git a/views/head.pug b/views/head.pug index 78fe0ba..3d2285a 100644 --- a/views/head.pug +++ b/views/head.pug @@ -45,10 +45,10 @@ mixin gamelist(list,hide_title=0) let className = "game_item" if (item.your_turn) className += " your_turn" if (item.is_unread) className += " unread" - if (item.status === 0 && !item.is_ready) className += " open" - else if (item.status === 0 && item.is_ready) className += " ready" - else if (item.status === 1 && !item.is_ready) className += " replacement" - else if (item.status === 1 && item.is_ready) className += " active" + if (item.status === 0 && !item.is_full) className += " open" + else if (item.status === 0 && item.is_full) className += " ready" + else if (item.status === 1 && !item.is_full) className += " replacement" + else if (item.status === 1 && item.is_full) className += " active" else if (item.status === 2) className += " finished" div(class=className) -- cgit v1.2.3