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.MOVENUMBER}: </b> ${(doc.game.@currentMove?number / 2 + 1)?string("0")}<br>
33 <b>${bundle.WHITE}:</b> <@status doc.game.id.@white/> ${bundle("FENCES_LEFT", board.players[0].fences)}<br>
34 <b>${bundle.BLACK}:</b> <@status doc.game.id.@black/> ${bundle("FENCES_LEFT", board.players[1].fences)}<br>
38 <a href="/">${bundle.ROOT}</a>
39 <#if (doc.game.@currentMove?number > 0)>
40 <a href="/games/${doc.game.id.@id}?move=${doc.game.@currentMove?number - 1}">${bundle.PREVIOUS}</a>
44 <a href="/games/${doc.game.id.@id}"">${bundle.LATEST}</a>
45 <#if (doc.game.@currentMove?number < doc.game.moves.*?size)>
46 <a href="/games/${doc.game.id.@id}?move=${doc.game.@currentMove?number + 1}">${bundle.NEXT}</a>
54 <span style="color: red">${message}</span>
58 <#assign play = false>
60 <#if doc.game.id.@status = "whiteMove" || doc.game.id.@status = "blackMove" >
61 <#assign play = user = doc.game.@currentPlayer>
64 <form action="/games/${doc.game.id.@id}/move">
65 <input type="hidden" name="type" value="fence" readonly="readonly"/>
66 <select name="column">
86 <select name="direction">
87 <option>${bundle.H}</option>
88 <option>${bundle.V}</option>
90 <input type="submit" value="${bundle.PLACE}" />
92 <form action="/games/${doc.game.id.@id}/move">
93 <input type="hidden" name="type" value="move" readonly="readonly"/>
94 <select name="direction">
100 <select name="direction-next">
107 <input type="submit" value="${bundle.MOVE}" />
109 <form action="/games/${doc.game.id.@id}/move">
110 <input type="hidden" name="type" value="resign" readonly="readonly"/>
111 <input type="submit" value="${bundle.RESIGN}" />
116 <#if format?? && format = "text">
117 <pre>${doc.game.board}</pre>
118 <a href="/games/${doc.game.id.@id}?format=small">${bundle.BOARD_SMALL}</a>
119 <a href="/games/${doc.game.id.@id}?format=image">${bundle.BOARD_IMAGE}</a>
121 <#elseif format?? && format = "small">
123 <img src="/api/games/${doc.game.id.@id}?fieldSize=20<#if doc.game.@currentMove??>&move=${doc.game.@currentMove}</#if>" alt="${bundle.BOARD_TEXT}">
125 ${bundle.BOARD_SMALL}
126 <a href="/games/${doc.game.id.@id}?format=image">${bundle.BOARD_IMAGE}</a>
127 <a href="/games/${doc.game.id.@id}?format=text">${bundle.BOARD_TEXT}</a>
130 <img src="/api/games/${doc.game.id.@id}<#if doc.game.@currentMove??>?move=${doc.game.@currentMove}</#if>" alt="${bundle.BOARD_TEXT}">
132 <a href="/games/${doc.game.id.@id}?format=small">${bundle.BOARD_SMALL}</a>
133 ${bundle.BOARD_IMAGE}
134 <a href="/games/${doc.game.id.@id}?format=text">${bundle.BOARD_TEXT}</a>
137 <#macro printMove item>
138 <#if item.@index = doc.game.@currentMove>
141 <a href="/games/${doc.game.id.@id}?move=${item.@index}">${item.@move}</a>
145 <h3><a href="/games/${doc.game.id.@id}?move=0">${bundle.MOVES}</a></h3>
150 <th>${bundle.MOVENUMBER}</th>
151 <th>${doc.game.id.@white}</th>
152 <th>${doc.game.id.@black}</th>
157 <#list doc.game.moves.* as item>
159 <#if item.@index?number % 2 = 1>
160 <#assign index = index + 1>
161 <tr><td>${index}</td><td><@printMove item/></td>
163 <td><@printMove item/></td></tr>
169 ${bundle("copyright", version)}