1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Mon Sep 07 16:33:56 2009 +0200
1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Mon Sep 07 17:02:59 2009 +0200
1.3 @@ -3,6 +3,9 @@
1.4 <head>
1.5 <title></title>
1.6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1.7 + <#if user != doc.game.@currentPlayer >
1.8 + <meta http-equiv="REFRESH" content="60;URL=/games/${doc.game.id.@id}">
1.9 + </#if>
1.10 </head>
1.11 <body>
1.12 <h1>${bundle.GAME}</h1>
1.13 @@ -19,8 +22,19 @@
1.14 </p>
1.15 </#if>
1.16
1.17 - ${bundle.MOVE_WHO} ${doc.game.@currentPlayer}
1.18 - <#if user = doc.game.@currentPlayer >
1.19 + <#assign play = false>
1.20 +
1.21 + <#if doc.game.id.@result = "IN_PROGRESS" >
1.22 + ${bundle.MOVE_WHO} ${doc.game.@currentPlayer}
1.23 + <#assign play = user = doc.game.@currentPlayer>
1.24 + <#else>
1.25 + <#if doc.game.id.@result = "WHITE_WON">
1.26 + ${doc.game.id.@white} ${bundle.WON}
1.27 + <#else>
1.28 + ${doc.game.id.@black} ${bundle.WON}
1.29 + </#if>
1.30 + </#if>
1.31 + <#if play>
1.32 <form action="/games/${doc.game.id.@id}/move">
1.33 <input type="hidden" name="type" value="fence" readonly="readonly"/>
1.34 <select name="column">
2.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.properties Mon Sep 07 16:33:56 2009 +0200
2.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.properties Mon Sep 07 17:02:59 2009 +0200
2.3 @@ -9,3 +9,4 @@
2.4 MOVES=Moves
2.5 ROOT=Home
2.6 MOVE_WHO=Who's turn
2.7 +WON=won
3.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game_cs.properties Mon Sep 07 16:33:56 2009 +0200
3.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game_cs.properties Mon Sep 07 17:02:59 2009 +0200
3.3 @@ -8,4 +8,5 @@
3.4 MOVENUMBER=Tah
3.5 MOVES=Z\u00E1pis
3.6 ROOT=Dom\u016F
3.7 -MOVE_WHO=Na tahu je
3.8 \ No newline at end of file
3.9 +MOVE_WHO=Na tahu je
3.10 +WON=vyhr\u00E1l