From a1c93c992e456764415b5a4c302e1137673c0a5f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 1 Jan 2024 17:36:56 +0100 Subject: Add time control enforcement. --- views/head.pug | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'views') diff --git a/views/head.pug b/views/head.pug index e47033a..5cbb726 100644 --- a/views/head.pug +++ b/views/head.pug @@ -118,6 +118,12 @@ mixin gamelist(list,hide_title=0) div Created: #{item.ctime} when 1 div Last move: #{item.mtime} + if item.time_left <= 0 + div Time left: none. + else if item.time_left <= 2 + div Time left: #{ item.time_left * 24 | 0 } hours + else if item.time_left <= 5 + div Time left: #{ item.time_left | 0 } days when 2 div Finished: #{item.mtime} div Result: !{item.result} -- cgit v1.2.3