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@90
|
6 |
<meta http-equiv="REFRESH" content="60;URL=/">
|
jtulach@41
|
7 |
</head>
|
jtulach@41
|
8 |
<body>
|
jaroslav@59
|
9 |
<h1>${bundle.TITLE}</h1>
|
jaroslav@56
|
10 |
|
jtulach@80
|
11 |
<#macro before t>
|
jtulach@80
|
12 |
<#assign seconds = (t / 1000)?int/>
|
jtulach@80
|
13 |
<#assign minutes= (seconds / 60)?int/>
|
jtulach@80
|
14 |
<#assign hours= (minutes / 60)?int/>
|
jtulach@80
|
15 |
<#assign days= (hours / 24)?int/>
|
jtulach@80
|
16 |
<!--millis: ${t}, seconds: ${seconds}, minutes: ${minutes} hours: ${hours}, days: ${days} -->
|
jtulach@80
|
17 |
${bundle("LastMove", t?int, seconds?int, minutes?int, hours?int, days?int)}
|
jtulach@78
|
18 |
</#macro>
|
jtulach@78
|
19 |
|
jaroslav@58
|
20 |
<#macro game game>
|
jtulach@78
|
21 |
${bundle("gameWhiteBlack", game.@white?string, game.@black?string)}
|
jtulach@80
|
22 |
<a href="/games/${game.@id}/"><@before (now - game.@modified?number)?int/></a>
|
jaroslav@58
|
23 |
</#macro>
|
jaroslav@58
|
24 |
|
jaroslav@57
|
25 |
<#if message?? >
|
jaroslav@57
|
26 |
<p>
|
jaroslav@57
|
27 |
<span style="color: red">${message}</span>
|
jaroslav@57
|
28 |
</p>
|
jaroslav@57
|
29 |
</#if>
|
jaroslav@57
|
30 |
|
jaroslav@59
|
31 |
<h5>${bundle.GAME_MOVE}</h5>
|
jaroslav@56
|
32 |
|
jaroslav@56
|
33 |
<ol>
|
jaroslav@56
|
34 |
<#list doc.gameIds.* as g>
|
jtulach@77
|
35 |
<#if (g.@white = user && g.@status = "whiteMove") ||
|
jtulach@77
|
36 |
(g.@black = user && g.@status = "blackMove")
|
jtulach@77
|
37 |
>
|
jtulach@77
|
38 |
<li>
|
jtulach@77
|
39 |
<@game g/>
|
jtulach@77
|
40 |
</li>
|
jtulach@77
|
41 |
</#if>
|
jtulach@77
|
42 |
</#list>
|
jtulach@77
|
43 |
</ol>
|
jtulach@77
|
44 |
|
jtulach@77
|
45 |
<h5>${bundle.GAME_WAIT}</h5>
|
jtulach@77
|
46 |
|
jtulach@77
|
47 |
<ol>
|
jtulach@77
|
48 |
<#list doc.gameIds.* as g>
|
jtulach@77
|
49 |
<#if (g.@white = user && g.@status = "blackMove") ||
|
jtulach@77
|
50 |
(g.@black = user && g.@status = "whiteMove")
|
jtulach@77
|
51 |
>
|
jaroslav@56
|
52 |
<li>
|
jaroslav@58
|
53 |
<@game g/>
|
jaroslav@56
|
54 |
</li>
|
jaroslav@56
|
55 |
</#if>
|
jaroslav@56
|
56 |
</#list>
|
jaroslav@56
|
57 |
</ol>
|
jaroslav@56
|
58 |
|
jaroslav@59
|
59 |
<h5>${bundle.GAME_WON}</h5>
|
jaroslav@57
|
60 |
|
jaroslav@57
|
61 |
<ol>
|
jaroslav@57
|
62 |
<#list doc.gameIds.* as g>
|
jaroslav@57
|
63 |
<#if
|
jtulach@77
|
64 |
(g.@white = user && g.@status = "whiteWon") ||
|
jtulach@77
|
65 |
(g.@black = user && g.@status = "blackWon")
|
jaroslav@57
|
66 |
>
|
jaroslav@57
|
67 |
<li>
|
jaroslav@58
|
68 |
<@game g/>
|
jaroslav@57
|
69 |
</li>
|
jaroslav@57
|
70 |
</#if>
|
jaroslav@57
|
71 |
</#list>
|
jaroslav@57
|
72 |
</ol>
|
jaroslav@57
|
73 |
|
jaroslav@59
|
74 |
<h5>${bundle.GAME_LOST}</h5>
|
jaroslav@57
|
75 |
|
jaroslav@57
|
76 |
<ol>
|
jaroslav@57
|
77 |
<#list doc.gameIds.* as g>
|
jaroslav@57
|
78 |
<#if
|
jtulach@77
|
79 |
(g.@white = user && g.@status = "blackWon") ||
|
jtulach@77
|
80 |
(g.@black = user && g.@status = "whiteWon")
|
jaroslav@57
|
81 |
>
|
jaroslav@57
|
82 |
<li>
|
jaroslav@58
|
83 |
<@game g/>
|
jaroslav@57
|
84 |
</li>
|
jaroslav@57
|
85 |
</#if>
|
jaroslav@57
|
86 |
</#list>
|
jaroslav@57
|
87 |
</ol>
|
jaroslav@57
|
88 |
|
jtulach@74
|
89 |
<form action="/games/create">
|
jaroslav@59
|
90 |
${bundle.WHITE}: <input type="text" name="white" value="" />
|
jaroslav@59
|
91 |
${bundle.BLACK}: <input type="text" name="black" value="" />
|
jaroslav@71
|
92 |
<input type="submit" value="${bundle.CREATE}" />
|
jaroslav@57
|
93 |
</form>
|
jaroslav@57
|
94 |
|
jaroslav@59
|
95 |
<h5>${bundle.GAME_ALL}</h5>
|
jaroslav@56
|
96 |
|
jtulach@41
|
97 |
<ol>
|
jtulach@54
|
98 |
<#list doc.gameIds.* as g>
|
jtulach@54
|
99 |
<li>
|
jaroslav@58
|
100 |
<@game g/>
|
jtulach@54
|
101 |
</li>
|
jtulach@41
|
102 |
</#list>
|
jtulach@41
|
103 |
</ol>
|
jaroslav@88
|
104 |
<hr/>
|
jaroslav@88
|
105 |
${bundle("copyright", version)}
|
jtulach@41
|
106 |
</body>
|
jtulach@41
|
107 |
</html> |