1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <#if user = doc.game.@currentPlayer>
8 ${bundle("Waiting", doc.game.@currentPlayer?string)}
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
12 <#if user != doc.game.@currentPlayer >
13 <meta http-equiv="REFRESH" content="60;URL=/games/${doc.game.id.@id}">
17 <h1><a href="/games/${doc.game.id.@id}">${bundle.GAME}</a></h1>
21 <#if who = doc.game.@currentPlayer>
22 <#if doc.game.id.@status = "whiteWon" || doc.game.id.@status = "blackWon" >
32 <b>${bundle.WHITE}:</b> <@status doc.game.id.@white/> ${bundle("FENCES_LEFT", board.players[0].fences)}<br>
33 <b>${bundle.BLACK}:</b> <@status doc.game.id.@black/> ${bundle("FENCES_LEFT", board.players[1].fences)}<br>
37 <a href="/">${bundle.ROOT}</a>
42 <span style="color: red">${message}</span>
46 <#assign play = false>
48 <#if doc.game.id.@status = "whiteMove" || doc.game.id.@status = "blackMove" >
49 <#assign play = user = doc.game.@currentPlayer>
52 <form action="/games/${doc.game.id.@id}/move">
53 <input type="hidden" name="type" value="fence" readonly="readonly"/>
54 <select name="column">
74 <select name="direction">
75 <option>${bundle.H}</option>
76 <option>${bundle.V}</option>
78 <input type="submit" value="${bundle.PLACE}" />
80 <form action="/games/${doc.game.id.@id}/move">
81 <input type="hidden" name="type" value="move" readonly="readonly"/>
82 <select name="direction">
88 <select name="direction-next">
95 <input type="submit" value="${bundle.MOVE}" />
97 <form action="/games/${doc.game.id.@id}/move">
98 <input type="hidden" name="type" value="resign" readonly="readonly"/>
99 <input type="submit" value="${bundle.RESIGN}" />
103 <#if format?? && format = "text">
104 <pre>${doc.game.board}</pre>
105 <a href="/games/${doc.game.id.@id}?format=image">${bundle.BOARD_IMAGE}</a>
108 <img src="/api/games/${doc.game.id.@id}" alt="text">
110 <a href="/games/${doc.game.id.@id}?format=text">${bundle.BOARD_TEXT}</a>
115 <h3>${bundle.MOVES}</h3>
120 <th>${bundle.MOVENUMBER}</th>
121 <th>${doc.game.id.@white}</th>
122 <th>${doc.game.id.@black}</th>
127 <#list doc.game.moves.* as item>
128 <#if item.@index?number % 2 = 1>
129 <#assign index = index + 1>
130 <tr><td>${index}</td><td>${item.@move}</td>
132 <td>${item.@move}</td></tr>
138 ${bundle("copyright", version)}