summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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