freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 04 Sep 2009 20:26:48 +0200
changeset 56 7c3794f5baa1
parent 54 f041b6570ff9
child 57 fa12b02023a0
permissions -rw-r--r--
Reload of the game page, warning messages, listing just game in progress
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2 <html>
     3   <head>
     4     <title></title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6   </head>
     7   <body>
     8       <h1>Quoridor Community Server</h1>
     9 
    10       <h5>Games where you are expected to move</h5>
    11 
    12       <ol>
    13       <#list doc.gameIds.* as g>
    14         <#if (g.@white = user || g.@black = user) && g.@result = "IN_PROGRESS" >
    15             <li>
    16                 ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
    17             </li>
    18         </#if>
    19       </#list>
    20       </ol>
    21 
    22       <h5>All Games</h5>
    23 
    24       <ol>
    25       <#list doc.gameIds.* as g>
    26         <li>
    27             ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
    28         </li>
    29       </#list>
    30       </ol>
    31       <form action="games/create">
    32             White: <input type="text" name="white" value="" />
    33             Black: <input type="text" name="black" value="" />
    34             <input type="submit" value="Create!" />
    35       </form>
    36   </body>
    37 </html>