summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-10-05 16:18:59 +0200
committerTor Andersson <tor@ccxvii.net>2022-10-05 17:36:50 +0200
commitd599d78732c0e7b312e6e366c27577a45edf856e (patch)
tree4f4f7a84a568304a24b8249e113e1f2236113d34 /views/head.pug
parenta7a26d847be77d0c9007b3e9766a83cfa3b34876 (diff)
downloadserver-d599d78732c0e7b312e6e366c27577a45edf856e.tar.gz
Track read status of in-game chat messages.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/head.pug b/views/head.pug
index 4df5759..6ea9285 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -44,6 +44,7 @@ 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"