From 7c0eb693a50dbd2890a5ad1b27516a0a829bbf7c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 31 Mar 2023 23:53:20 +0200 Subject: Rename game "description" to "notice". --- views/create.pug | 15 +++++---------- views/head.pug | 4 ++-- views/join.pug | 18 ++++++++++++++---- 3 files changed, 21 insertions(+), 16 deletions(-) (limited to 'views') diff --git a/views/create.pug b/views/create.pug index 42d3a46..d742cfc 100644 --- a/views/create.pug +++ b/views/create.pug @@ -24,21 +24,16 @@ html else input(type="hidden" name="scenario" value=scenarios[0]) | !{ create_html } - p Description: + + p Notice: br - input(type="text" list="speed" autocomplete="off" name="description" size=50) - datalist(id="speed") - option Async - 1 move per day - option Async - x moves per day - option Live - America - option Live - Europe - option Live - Asia - option Live - Oceania - option Learning game + input(type="text" autocomplete="off" name="notice" size=50 placeholder="What are you looking for?") + p label input(type="checkbox" name="is_random" value="true") | Random player roles + p label input(type="checkbox" name="is_private" value="true") diff --git a/views/head.pug b/views/head.pug index e90ce6b..cf0b268 100644 --- a/views/head.pug +++ b/views/head.pug @@ -85,8 +85,8 @@ mixin gamelist(list,hide_title=0) div.game_main div.game_info - if item.description - i= item.description + if item.notice + i= item.notice if item.scenario !== "Standard" && item.scenario !== "Historical" && item.scenario.length > 2 div Scenario: #{item.scenario} unless item.human_options === "None" diff --git a/views/join.pug b/views/join.pug index abbaf2c..0f9daef 100644 --- a/views/join.pug +++ b/views/join.pug @@ -39,17 +39,27 @@ html div.logo +gamecover(game.title_id) + div Scenario: #{game.scenario} + + unless game.human_options === "None" + div Options: #{game.human_options} div if game.is_private | Owner: #{game.owner_name} (private) else | Owner: #{game.owner_name} - div Scenario: #{game.scenario} - div Options: #{game.human_options} + + div Created: #{game.ctime} + unless game.mtime === "never" + div Changed: #{game.mtime} + if game.status === 2 - div Result: !{game.result} + div Result: #{game.result} - p= game.description || "No description." + if game.notice + br + div + i= game.notice br(clear="left") -- cgit v1.2.3