# HG changeset patch
# User Jaroslav Tulach
# Date 1252335779 -7200
# Node ID d8dfa8972c4fc4addf027007aaaf8ff21e2898c2
# Parent 1dae4b5f02598ad196e95ad03111fad2673f4aa6
Refresh after minute when waiting for move
diff -r 1dae4b5f0259 -r d8dfa8972c4f freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt
--- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Mon Sep 07 16:33:56 2009 +0200
+++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Mon Sep 07 17:02:59 2009 +0200
@@ -3,6 +3,9 @@
+ <#if user != doc.game.@currentPlayer >
+
+ #if>
${bundle.GAME}
@@ -19,8 +22,19 @@
#if>
- ${bundle.MOVE_WHO} ${doc.game.@currentPlayer}
- <#if user = doc.game.@currentPlayer >
+ <#assign play = false>
+
+ <#if doc.game.id.@result = "IN_PROGRESS" >
+ ${bundle.MOVE_WHO} ${doc.game.@currentPlayer}
+ <#assign play = user = doc.game.@currentPlayer>
+ <#else>
+ <#if doc.game.id.@result = "WHITE_WON">
+ ${doc.game.id.@white} ${bundle.WON}
+ <#else>
+ ${doc.game.id.@black} ${bundle.WON}
+ #if>
+ #if>
+ <#if play>