freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt
changeset 60 74d333da1725
parent 59 fd7e8e705b75
child 61 517faddf1320
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt	Fri Sep 04 23:02:23 2009 +0200
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/game.fmt	Sat Sep 05 15:40:39 2009 +0200
     1.3 @@ -10,6 +10,7 @@
     1.4  
     1.5        <p>
     1.6        <a href="/games/${doc.game.id.@id}">${bundle.RELOAD}</a>
     1.7 +      <a href="/">${bundle.ROOT}</a>
     1.8        </p>
     1.9        
    1.10        <#if message?? >
    1.11 @@ -18,6 +19,7 @@
    1.12          </p>
    1.13        </#if>
    1.14  
    1.15 +      ${bundle.MOVE_WHO} ${doc.game.@currentPlayer}
    1.16        <#if user = doc.game.@currentPlayer >
    1.17            <form action="/games/${doc.game.id.@id}/move">
    1.18                <input type="hidden" name="type" value="fence" readonly="readonly"/>
    1.19 @@ -66,5 +68,26 @@
    1.20            </form>
    1.21        </#if>
    1.22        <pre>${doc.game.board}</pre>
    1.23 +
    1.24 +      <h3>${bundle.MOVES}</h3>
    1.25 +
    1.26 +      <table border="0">
    1.27 +          <thead>
    1.28 +              <tr>
    1.29 +                  <th>${bundle.MOVENUMBER}</th>
    1.30 +                  <th>${doc.game.id.@white}</th>
    1.31 +                  <th>${doc.game.id.@black}</th>
    1.32 +              </tr>
    1.33 +          </thead>
    1.34 +          <tbody>
    1.35 +              <#list doc.game.moves.* as item>
    1.36 +                <#if item.@index?number % 2 = 1>
    1.37 +                    <tr><td>${item.@index}</td><td>${item.@move}</td>
    1.38 +                <#else>
    1.39 +                    <td>${item.@move}</td></tr>
    1.40 +                </#if>
    1.41 +              </#list>
    1.42 +          </tbody>
    1.43 +      </table>
    1.44    </body>
    1.45  </html>
    1.46 \ No newline at end of file