From f5ea88328ef1b4dabd5f58b4c78ad4e175c96765 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 11 Sep 2023 15:21:24 +0200 Subject: Add user links to join page. --- views/head.pug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'views/head.pug') diff --git a/views/head.pug b/views/head.pug index fa2b042..0fc415b 100644 --- a/views/head.pug +++ b/views/head.pug @@ -43,8 +43,8 @@ mixin gamelist(list,hide_title=0) div - let className = "game_item" + let chat_icon = "" if (item.your_turn) className += " your_turn" - if (item.is_unread) className += " unread" 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" @@ -52,15 +52,16 @@ 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}" div(class=className) div.game_head if item.scenario.length <= 2 div - | #{item.game_id} – #{item.title_name} (#{item.scenario}) + | #{item.game_id} – #{item.title_name} (#{item.scenario}) #{chat_icon} else div - | #{item.game_id} – #{item.title_name} + | #{item.game_id} – #{item.title_name} #{chat_icon} case item.status when 0 -- cgit v1.2.3