freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/elo.fmt
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 02 Mar 2010 17:09:06 +0100
changeset 232 4a94cefe6555
parent 222 d783bb2a7956
permissions -rw-r--r--
Print version at bottom
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     2 <html>
     3   <head>
     4     <title>${bundle.ELO_LIST}</title>
     5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     6   </head>
     7   <body bgcolor="white">
     8       <h3><a href="/">${bundle.TITLE_PLAIN}</a></h3>
     9       <#assign published=toDate[doc.eloList.published?string]/>
    10       <#if now &gt; doc.eloList.published?number>
    11       <h4>${bundle.ELO_LIST} - ${published?date?string('MM/yyyy')}</h4>
    12       <#else>
    13       <h4>${bundle.ELO_LIST}</h4>
    14       </#if>
    15       <table border="1">
    16           <thead>
    17               <tr>
    18                   <th>#</th>
    19                   <th>${bundle.NAME}</th>
    20                   <th>${bundle.ELO}</th>
    21                   <th>${bundle.GAMES}</th>
    22               </tr>
    23           </thead>
    24           <tbody>
    25               <#assign cElo = 10000>
    26               <#assign index = 0>
    27               <#assign cIndex = index>
    28               <#list doc.eloList.elolist.* as item>
    29 
    30                 <#assign index = index + 1>
    31                 <#if cElo = item.@elo?number>
    32                 <#else>
    33                   <#assign cIndex = index>
    34                 </#if>
    35                 <#assign cElo = item.@elo?number>
    36 
    37                 <tr>
    38                 <td>${cIndex}</td>
    39                 <td>${item.@player}</td>
    40                 <td>${item.@elo?number}</td>
    41                 <td>${item.@games}</td>
    42                 </tr>
    43 
    44               </#list>
    45           </tbody>
    46       </table>
    47       <#if (doc.eloList.originalList='false')>
    48           <h4><a href="/elo?historyId=${historyId?number+1}">${bundle.ELO_PREVIOUS}</a></h4>
    49       </#if>
    50       <hr/>
    51       ${bundle("copyright", version)}
    52   </body>
    53 </html>