summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-01 21:17:43 +0100
committerTor Andersson <tor@ccxvii.net>2023-03-01 21:17:48 +0100
commitfab1401922290364fcd260d7390701b46aa3eb75 (patch)
tree364e101760671e44246729a660e48df5ffb5532f /views/head.pug
parentba9f82e2344bbbda2d5aa5d81b41a9b52624a4c3 (diff)
downloadserver-fab1401922290364fcd260d7390701b46aa3eb75.tar.gz
Separate ready and full status for display in game lists.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug8
1 files changed, 4 insertions, 4 deletions
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)