diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-01-01 17:36:56 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-28 13:50:27 +0100 |
commit | a1c93c992e456764415b5a4c302e1137673c0a5f (patch) | |
tree | aae79b1ce9c085e66f5ecf4022a2ea93cc07b92e /views | |
parent | 12a2a48e5e1158e1fcbed03862ab17e2869c09e4 (diff) | |
download | server-a1c93c992e456764415b5a4c302e1137673c0a5f.tar.gz |
Add time control enforcement.
Diffstat (limited to 'views')
-rw-r--r-- | views/head.pug | 6 |
1 files changed, 6 insertions, 0 deletions
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} |