diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-03-31 23:53:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-04-28 23:36:11 +0200 |
commit | 7c0eb693a50dbd2890a5ad1b27516a0a829bbf7c (patch) | |
tree | 33bf8e70042b0c67e784ca9483448baacb260602 /views | |
parent | b145880739e1770ebeac914b769624d86c39645c (diff) | |
download | server-7c0eb693a50dbd2890a5ad1b27516a0a829bbf7c.tar.gz |
Rename game "description" to "notice".
Diffstat (limited to 'views')
-rw-r--r-- | views/create.pug | 15 | ||||
-rw-r--r-- | views/head.pug | 4 | ||||
-rw-r--r-- | views/join.pug | 18 |
3 files changed, 21 insertions, 16 deletions
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: <a href="/user/#{game.owner_name}">#{game.owner_name}</a> (private) else | Owner: <a href="/user/#{game.owner_name}">#{game.owner_name}</a> - 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") |