freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/elo.fmt
changeset 222 d783bb2a7956
parent 218 4633b40ea42f
child 232 4a94cefe6555
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/elo.fmt	Wed Jan 13 16:57:55 2010 +0100
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/elo.fmt	Mon Jan 18 10:29:53 2010 +0100
     1.3 @@ -6,10 +6,12 @@
     1.4    </head>
     1.5    <body bgcolor="white">
     1.6        <h3><a href="/">${bundle.TITLE_PLAIN}</a></h3>
     1.7 -      <#assign first=toDate[doc.eloList.firstGame?string]/>
     1.8 -      <#assign last=toDate[doc.eloList.lastGame?string]/>
     1.9 -      <h4>${bundle.ELO_LIST} - ${last?date?string.long}</h4>
    1.10 -      <!-- New games: ${first?datetime?string.long} - ${last?datetime?string.long} -->
    1.11 +      <#assign published=toDate[doc.eloList.published?string]/>
    1.12 +      <#if now &gt; doc.eloList.published?number>
    1.13 +      <h4>${bundle.ELO_LIST} - ${published?date?string('MM/yyyy')}</h4>
    1.14 +      <#else>
    1.15 +      <h4>${bundle.ELO_LIST}</h4>
    1.16 +      </#if>
    1.17        <table border="1">
    1.18            <thead>
    1.19                <tr>