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.@status = "whiteMove" || doc.game.id.@status = "blackMove" >
28 ${bundle("MOVE_WHO", doc.game.@currentPlayer?string)}
29 <#assign play = user = doc.game.@currentPlayer>
31 <#if doc.game.id.@status = "whiteWon">
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}" />
83 <form action="/games/${doc.game.id.@id}/move">
84 <input type="hidden" name="type" value="resign" readonly="readonly"/>
85 <input type="submit" value="${bundle.RESIGN}" />
88 <img src="/api/games/${doc.game.id.@id}" alt="board"/>
89 <pre>${doc.game.board}</pre>
91 <h3>${bundle.MOVES}</h3>
96 <th>${bundle.MOVENUMBER}</th>
97 <th>${doc.game.id.@white}</th>
98 <th>${doc.game.id.@black}</th>
103 <#list doc.game.moves.* as item>
104 <#if item.@index?number % 2 = 1>
105 <#assign index = index + 1>
106 <tr><td>${index}</td><td>${item.@move}</td>
108 <td>${item.@move}</td></tr>
114 ${bundle("copyright", version)}