1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <#if user != doc.game.@currentPlayer >
7 <meta http-equiv="REFRESH" content="60;URL=/games/${doc.game.id.@id}">
11 <h1>${bundle.GAME}</h1>
12 <h3>${bundle("players", doc.game.id.@white?string, doc.game.id.@black?string)}</h3>
15 <a href="/games/${doc.game.id.@id}">${bundle.RELOAD}</a>
16 <a href="/">${bundle.ROOT}</a>
21 <span style="color: red">${message}</span>
25 <#assign play = false>
27 <#if doc.game.id.@result = "IN_PROGRESS" >
28 ${bundle("MOVE_WHO", doc.game.@currentPlayer?string)}
29 <#assign play = user = doc.game.@currentPlayer>
31 <#if doc.game.id.@result = "WHITE_WON">
32 ${bundle("WON", doc.game.id.@white?string)}
34 ${bundle("WON", doc.game.id.@black?string)}
38 <form action="/games/${doc.game.id.@id}/move">
39 <input type="hidden" name="type" value="fence" readonly="readonly"/>
40 <select name="column">
60 <select name="direction">
61 <option>${bundle.H}</option>
62 <option>${bundle.V}</option>
64 <input type="submit" value="${bundle.PLACE}" />
66 <form action="/games/${doc.game.id.@id}/move">
67 <input type="hidden" name="type" value="move" readonly="readonly"/>
68 <select name="direction">
74 <select name="direction-next">
81 <input type="submit" value="${bundle.MOVE}" />
84 <pre>${doc.game.board}</pre>
86 <h3>${bundle.MOVES}</h3>
91 <th>${bundle.MOVENUMBER}</th>
92 <th>${doc.game.id.@white}</th>
93 <th>${doc.game.id.@black}</th>
98 <#list doc.game.moves.* as item>
99 <#if item.@index?number % 2 = 1>
100 <#assign index = index + 1>
101 <tr><td>${index}</td><td>${item.@move}</td>
103 <td>${item.@move}</td></tr>