From a1e140a126a2a2121bb56230e87e00bb92cbd9a5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 13 Mar 2024 14:36:12 +0100 Subject: More consistent Enter / Play / View in game boxes. --- views/head.pug | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'views') diff --git a/views/head.pug b/views/head.pug index dc7cf93..d8a8ad6 100644 --- a/views/head.pug +++ b/views/head.pug @@ -77,25 +77,25 @@ mixin gamelist(list,hide_title=0) case item.status when 0 - a(class="command" href=`/join/${item.game_id}`) Join + a(class="command" href=`/join/${item.game_id}`) Enter when 1 if !item.is_ready - a(class="command" href="/join/"+item.game_id) Join + a(class="command" href="/join/"+item.game_id) Enter else if item.is_yours if item.your_role a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=${encodeURIComponent(item.your_role)}`) Play else - a(class="command" href="/join/"+item.game_id) Play + a(class="command" href="/join/"+item.game_id) Enter else a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=Observer`) View when 2 if item.is_yours if item.your_role - a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=${encodeURIComponent(item.your_role)}`) Review + a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=${encodeURIComponent(item.your_role)}`) Play else - a(class="command" href="/join/"+item.game_id) Review + a(class="command" href="/join/"+item.game_id) Enter else - a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=Observer`) Review + a(class="command" href=`/${item.title_id}/play.html?game=${item.game_id}&role=Observer`) View when 3 | Archived -- cgit v1.2.3