Initial version of statistics and ELO rating. Donated by Martin Rexa
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title>${bundle.OPENINGS}</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8 <h3><a href="/">${bundle.TITLE_PLAIN}</a></h3>
9 <h4><a href="/openings">${bundle.OPENINGS}</a></h4>
11 <b>${bundle.WHITE}:</b> ${bundle("FENCES_LEFT", whitefences?number)}<br>
12 <b>${bundle.BLACK}:</b> ${bundle("FENCES_LEFT", blackfences?number)}<br>
14 <div style="position: relative; height:180px;">
15 <img style="position: absolute; left: 0; right: 0;"
16 width="180" height="180 "
17 src="/openings/${doc.openingNodeView.@code}.png?fieldSize=20"
18 alt="${bundle.BOARD_TEXT}"
20 <div id="fence" style="position: absolute; left: 0; right: 0;"></div>
21 <div id="player" style="position: absolute; left: 0; right: 0;"></div>
25 <a href="/openings/${item.code}/">${item.move}</a>
27 <#macro games cnt gId status code>
28 <#if (cnt?number = 0)>
31 <#if (cnt?number = 1)>
32 <a href="/games/${gId.@id}/">${cnt?number}</a>
34 <#if (cnt?number > 1)>
35 <a href="/openings/${code}/${status}">${cnt?number}</a>
38 <#if (doc.openingNodeView.children.*?size > 0)>
42 <th>${bundle.MOVENUMBER}</th>
43 <th>${bundle.WHITE_WON}</th>
44 <th>${bundle.BLACK_WON}</th>
48 <#list doc.openingNodeView.children.* as item>
50 <td><@move item/></td>
51 <td><@games item.whiteWon item.whiteGame 'white' item.code/></td>
52 <td><@games item.blackWon item.blackGame 'black' item.code/></td>
60 <#assign seconds = (t / 1000)?long/>
61 <#assign minutes= (seconds / 60)?long/>
62 <#assign hours= (minutes / 60)?long/>
63 <#assign days= (hours / 24)?long/>
64 <!--millis: ${t}, seconds: ${seconds}, minutes: ${minutes} hours: ${hours}, days: ${days} -->
65 ${bundle("LastMove", t?int, seconds?int, minutes?int, hours?int, days?int)}
68 ${bundle("gameWhiteBlack", game.@white?string, game.@black?string)}
69 <a href="/games/${game.@id}/"><@before (now - game.@modified?number)?long/></a>
70 <#if game.@status = "whiteWon">
73 <#if game.@status = "blackWon">
76 <#if game.@comments?number != 0>
77 ${bundle("comments", game.@comments?number)}
81 <#if (doc.openingNodeView.@whiteCount?number + doc.openingNodeView.@blackCount?number > 0)>
82 <h3>${bundle.GAMES}</h3>
84 <#list doc.openingNodeView.whiteGames.* as g>
89 <#list doc.openingNodeView.blackGames.* as g>