From 362b18a3a6f11c1a4c19c25201661d7e5010cc58 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 13 Feb 2022 00:44:42 +0100 Subject: Show optional rules in scenario column. --- server.js | 2 +- views/head.pug | 4 ++-- 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 -- cgit v1.2.3