1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Sat Sep 05 15:40:39 2009 +0200
1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt Sat Sep 05 15:52:31 2009 +0200
1.3 @@ -49,7 +49,7 @@
1.4 </select>
1.5 <input type="submit" value="${bundle.PLACE}" />
1.6 </form>
1.7 - <form action="move">
1.8 + <form action="/games/${doc.game.id.@id}/move">
1.9 <input type="hidden" name="type" value="move" readonly="readonly"/>
1.10 <select name="direction">
1.11 <option>E</option>
1.12 @@ -80,9 +80,11 @@
1.13 </tr>
1.14 </thead>
1.15 <tbody>
1.16 + <#assign index = 0>
1.17 <#list doc.game.moves.* as item>
1.18 <#if item.@index?number % 2 = 1>
1.19 - <tr><td>${item.@index}</td><td>${item.@move}</td>
1.20 + <#assign index = index + 1>
1.21 + <tr><td>${index}</td><td>${item.@move}</td>
1.22 <#else>
1.23 <td>${item.@move}</td></tr>
1.24 </#if>