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
jtulach@41
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
jtulach@41
     2
<html>
jtulach@41
     3
  <head>
jtulach@41
     4
    <title></title>
jtulach@41
     5
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
jtulach@41
     6
  </head>
jtulach@41
     7
  <body>
jtulach@41
     8
      <h1>Quoridor Community Server</h1>
jaroslav@56
     9
jaroslav@56
    10
      <h5>Games where you are expected to move</h5>
jaroslav@56
    11
jaroslav@56
    12
      <ol>
jaroslav@56
    13
      <#list doc.gameIds.* as g>
jaroslav@56
    14
        <#if (g.@white = user || g.@black = user) && g.@result = "IN_PROGRESS" >
jaroslav@56
    15
            <li>
jaroslav@56
    16
                ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
jaroslav@56
    17
            </li>
jaroslav@56
    18
        </#if>
jaroslav@56
    19
      </#list>
jaroslav@56
    20
      </ol>
jaroslav@56
    21
jaroslav@56
    22
      <h5>All Games</h5>
jaroslav@56
    23
jtulach@41
    24
      <ol>
jtulach@54
    25
      <#list doc.gameIds.* as g>
jtulach@54
    26
        <li>
jtulach@54
    27
            ${g.@white} vs. ${g.@black} <a href="games/${g.@id}/">board</a>
jtulach@54
    28
        </li>
jtulach@41
    29
      </#list>
jtulach@41
    30
      </ol>
jtulach@42
    31
      <form action="games/create">
jtulach@42
    32
            White: <input type="text" name="white" value="" />
jtulach@42
    33
            Black: <input type="text" name="black" value="" />
jtulach@42
    34
            <input type="submit" value="Create!" />
jtulach@42
    35
      </form>
jtulach@41
    36
  </body>
jtulach@41
    37
</html>