author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Mon, 07 Sep 2009 22:16:19 +0200 | |
changeset 69 | 90de58894949 |
parent 59 | fd7e8e705b75 |
child 71 | 2bb77e950347 |
permissions | -rw-r--r-- |
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> |
jaroslav@59 | 8 |
<h1>${bundle.TITLE}</h1> |
jaroslav@56 | 9 |
|
jaroslav@58 | 10 |
<#macro game game> |
jaroslav@69 | 11 |
${bundle("gameWhiteBlack", game.@white?string, game.@black?string)} <a href="/games/${game.@id}/">${bundle.BOARD}</a> |
jaroslav@58 | 12 |
</#macro> |
jaroslav@58 | 13 |
|
jaroslav@57 | 14 |
<#if message?? > |
jaroslav@57 | 15 |
<p> |
jaroslav@57 | 16 |
<span style="color: red">${message}</span> |
jaroslav@57 | 17 |
</p> |
jaroslav@57 | 18 |
</#if> |
jaroslav@57 | 19 |
|
jaroslav@59 | 20 |
<h5>${bundle.GAME_MOVE}</h5> |
jaroslav@56 | 21 |
|
jaroslav@56 | 22 |
<ol> |
jaroslav@56 | 23 |
<#list doc.gameIds.* as g> |
jaroslav@56 | 24 |
<#if (g.@white = user || g.@black = user) && g.@result = "IN_PROGRESS" > |
jaroslav@56 | 25 |
<li> |
jaroslav@58 | 26 |
<@game g/> |
jaroslav@56 | 27 |
</li> |
jaroslav@56 | 28 |
</#if> |
jaroslav@56 | 29 |
</#list> |
jaroslav@56 | 30 |
</ol> |
jaroslav@56 | 31 |
|
jaroslav@59 | 32 |
<h5>${bundle.GAME_WON}</h5> |
jaroslav@57 | 33 |
|
jaroslav@57 | 34 |
<ol> |
jaroslav@57 | 35 |
<#list doc.gameIds.* as g> |
jaroslav@57 | 36 |
<#if |
jaroslav@57 | 37 |
(g.@white = user && g.@result = "WHITE_WON") || |
jaroslav@57 | 38 |
(g.@black = user && g.@result = "BLACK_WON") |
jaroslav@57 | 39 |
> |
jaroslav@57 | 40 |
<li> |
jaroslav@58 | 41 |
<@game g/> |
jaroslav@57 | 42 |
</li> |
jaroslav@57 | 43 |
</#if> |
jaroslav@57 | 44 |
</#list> |
jaroslav@57 | 45 |
</ol> |
jaroslav@57 | 46 |
|
jaroslav@59 | 47 |
<h5>${bundle.GAME_LOST}</h5> |
jaroslav@57 | 48 |
|
jaroslav@57 | 49 |
<ol> |
jaroslav@57 | 50 |
<#list doc.gameIds.* as g> |
jaroslav@57 | 51 |
<#if |
jaroslav@57 | 52 |
(g.@white = user && g.@result = "BLACK_WON") || |
jaroslav@57 | 53 |
(g.@black = user && g.@result = "WHITE_WON") |
jaroslav@57 | 54 |
> |
jaroslav@57 | 55 |
<li> |
jaroslav@58 | 56 |
<@game g/> |
jaroslav@57 | 57 |
</li> |
jaroslav@57 | 58 |
</#if> |
jaroslav@57 | 59 |
</#list> |
jaroslav@57 | 60 |
</ol> |
jaroslav@57 | 61 |
|
jaroslav@57 | 62 |
<form action="games/create"> |
jaroslav@59 | 63 |
${bundle.WHITE}: <input type="text" name="white" value="" /> |
jaroslav@59 | 64 |
${bundle.BLACK}: <input type="text" name="black" value="" /> |
jaroslav@57 | 65 |
<input type="submit" value="Create!" /> |
jaroslav@57 | 66 |
</form> |
jaroslav@57 | 67 |
|
jaroslav@59 | 68 |
<h5>${bundle.GAME_ALL}</h5> |
jaroslav@56 | 69 |
|
jtulach@41 | 70 |
<ol> |
jtulach@54 | 71 |
<#list doc.gameIds.* as g> |
jtulach@54 | 72 |
<li> |
jaroslav@58 | 73 |
<@game g/> |
jtulach@54 | 74 |
</li> |
jtulach@41 | 75 |
</#list> |
jtulach@41 | 76 |
</ol> |
jtulach@41 | 77 |
</body> |
jtulach@41 | 78 |
</html> |