diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-28 13:53:47 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-02-01 01:26:54 +0100 |
commit | 1b00b4c94c0722436d5410f7940349f30db2094a (patch) | |
tree | 4ab0bf48e05138947abd0123e6a040cd519401b2 | |
parent | ed0e6a2ae0dee1e9eb26466d0ffaaf73a3cdf445 (diff) | |
download | server-1b00b4c94c0722436d5410f7940349f30db2094a.tar.gz |
Show "Nobody" in player column on unjoined games.
-rw-r--r-- | public/style.css | 4 | ||||
-rw-r--r-- | 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 |