summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-13 00:44:42 +0100
committerTor Andersson <tor@ccxvii.net>2022-02-15 12:18:30 +0100
commit362b18a3a6f11c1a4c19c25201661d7e5010cc58 (patch)
treebc3b80eb01812d9283e77386d702ed0aba6665be
parent87eb7db7edac63fb82f0f144d08a12c409609800 (diff)
downloadserver-362b18a3a6f11c1a4c19c25201661d7e5010cc58.tar.gz
Show optional rules in scenario column.
-rw-r--r--server.js2
-rw-r--r--views/head.pug4
2 files changed, 3 insertions, 3 deletions
diff --git a/server.js b/server.js
index 74ee072..6532c58 100644
--- a/server.js
+++ b/server.js
@@ -176,7 +176,7 @@ function human_date(time) {
var seconds = (Date.now() - date.getTime()) / 1000;
var days = Math.floor(seconds / 86400);
if (days === 0) {
- if (seconds < 60) return "now";
+ if (seconds < 60) return "Now";
if (seconds < 120) return "1 minute ago";
if (seconds < 3600) return Math.floor(seconds / 60) + " minutes ago";
if (seconds < 7200) return "1 hour ago";
diff --git a/views/head.pug b/views/head.pug
index 1fb90c6..3787bc5 100644
--- a/views/head.pug
+++ b/views/head.pug
@@ -57,10 +57,10 @@ mixin gametable(status,table,hide_title=0)
tbody
each row in table
tr
- td= row.game_id
+ td: a(href="/join/"+row.game_id)= row.game_id
unless hide_title
td.w: a(href="/"+row.title_id)= row.title_name
- td.w= row.scenario
+ td.w= row.options !== "None" ? row.scenario + ", " + row.options : row.scenario
if row.player_names
td!= row.player_names
else