summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/head.pug6
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}