From 66a395d7a2dfdb6a627fe04ec06a7a7a921a739b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 22 Aug 2024 18:20:50 +0200 Subject: Show time left in game box only when it's your turn. --- views/head.pug | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'views/head.pug') diff --git a/views/head.pug b/views/head.pug index 00e0ada..4262408 100644 --- a/views/head.pug +++ b/views/head.pug @@ -119,12 +119,13 @@ 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 + if item.your_turn + 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