From 1b00b4c94c0722436d5410f7940349f30db2094a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 28 Jan 2022 13:53:47 +0100 Subject: Show "Nobody" in player column on unjoined games. --- public/style.css | 4 ++-- views/head.pug | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/public/style.css b/public/style.css index c28939d..b5a69ad 100644 --- a/public/style.css +++ b/public/style.css @@ -96,8 +96,8 @@ button:disabled { outline: 1px solid gray; } -p.error { color: brown; font-style: italic; white-space: pre-wrap; } -p.warning { color: brown; } +.error { color: brown; font-style: italic; white-space: pre-wrap; } +.warning { color: brown; } p.warning::before { content: "\26a0"; } div.post { diff --git a/views/head.pug b/views/head.pug index e65fca2..cb5ab49 100644 --- a/views/head.pug +++ b/views/head.pug @@ -59,7 +59,10 @@ mixin gametable(status,table,hide_title=0) unless hide_title td.w: a(href="/"+row.title_id)= row.title_name td.w= row.scenario - td!= row.player_names + if row.player_names + td!= row.player_names + else + td.error Nobody td= row.description case status when 0 -- cgit v1.2.3