summaryrefslogtreecommitdiff
path: root/views/head.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-04-04 12:00:54 +0200
committerTor Andersson <tor@ccxvii.net>2025-04-06 00:39:50 +0200
commit25e2248aff086990a11b40dd3ea5612da889a1eb (patch)
tree4c5f317131cf3d8a017e900290c893a9516ecc9d /views/head.pug
parent6138d98f4dd9b58febedb64f1a565b50c234f37f (diff)
downloadserver-25e2248aff086990a11b40dd3ea5612da889a1eb.tar.gz
Track "unseen" finished games.
Color inactive games with unread chats orange. Include unseen finished games in "waiting" games badge. Don't count resignation and timeouts as a move.
Diffstat (limited to 'views/head.pug')
-rw-r--r--views/head.pug4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/head.pug b/views/head.pug
index 75e1135..8e5a0fe 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -60,7 +60,7 @@ mixin gamelist(list,hide_title=0)
let pace_icon = ""
let pace_text = ""
let chat_icon = ""
- if (item.your_turn) className += " your_turn"
+ if (item.your_turn || item.is_unseen) className += " your_turn"
if (item.status === 0 && item.join_count === 0) className += " open replacement"
else if (item.status === 0 && item.join_count !== item.player_count) className += " open"
else if (item.status === 0 && item.join_count === item.player_count) className += " ready"
@@ -68,7 +68,7 @@ mixin gamelist(list,hide_title=0)
else if (item.status === 1 && item.join_count === item.player_count) className += " active"
else if (item.status === 2) className += " finished"
else if (item.status === 3) className += " archived"
- if (item.is_unread) chat_icon = "\u{1f4dd}"
+ if (item.is_unread) { chat_icon = "\u{1f4dd}"; className += " unread" }
if (item.is_private) pace_icon += EMOJI_PRIVATE
if (item.is_match)
pace_icon += EMOJI_MATCH