Using long instead of int. Otherwise we can count just up to 22 days
authorJaroslav Tulach <jtulach@netbeans.org>
Tue, 08 Dec 2009 23:56:20 +0100
changeset 169e041463c81db
parent 168 a705dedc07d8
child 170 7d29ebd9c208
Using long instead of int. Otherwise we can count just up to 22 days
freemarkerdor/pom.xml
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
     1.1 --- a/freemarkerdor/pom.xml	Tue Dec 08 20:57:05 2009 +0100
     1.2 +++ b/freemarkerdor/pom.xml	Tue Dec 08 23:56:20 2009 +0100
     1.3 @@ -10,7 +10,7 @@
     1.4    <groupId>org.apidesign</groupId>
     1.5    <artifactId>freemarkerdor</artifactId>
     1.6    <name>freemarkerdor</name>
     1.7 -  <version>1.44</version>
     1.8 +  <version>1.45</version>
     1.9    <url>http://maven.apache.org</url>
    1.10    <dependencies>
    1.11      <dependency>
     2.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Tue Dec 08 20:57:05 2009 +0100
     2.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Tue Dec 08 23:56:20 2009 +0100
     2.3 @@ -44,17 +44,17 @@
     2.4        <h1>${bundle.TITLE}</h1>
     2.5  
     2.6        <#macro before t>
     2.7 -        <#assign seconds = (t / 1000)?int/>
     2.8 -        <#assign minutes= (seconds / 60)?int/>
     2.9 -        <#assign hours= (minutes / 60)?int/>
    2.10 -        <#assign days= (hours / 24)?int/>
    2.11 +        <#assign seconds = (t / 1000)?long/>
    2.12 +        <#assign minutes= (seconds / 60)?long/>
    2.13 +        <#assign hours= (minutes / 60)?long/>
    2.14 +        <#assign days= (hours / 24)?long/>
    2.15          <!--millis: ${t}, seconds: ${seconds}, minutes: ${minutes} hours: ${hours}, days: ${days} -->
    2.16          ${bundle("LastMove", t?int, seconds?int, minutes?int, hours?int, days?int)}
    2.17        </#macro>
    2.18  
    2.19        <#macro game game>
    2.20            ${bundle("gameWhiteBlack", game.@white?string, game.@black?string)} 
    2.21 -          <a href="/games/${game.@id}/"><@before (now - game.@modified?number)?int/></a>
    2.22 +          <a href="/games/${game.@id}/"><@before (now - game.@modified?number)?long/></a>
    2.23            <#if game.@comments?number != 0>
    2.24              ${bundle("comments", game.@comments?number)}
    2.25            </#if>
    2.26 @@ -187,4 +187,4 @@
    2.27        <hr/>
    2.28        ${bundle("copyright", version)}
    2.29    </body>
    2.30 -</html>
    2.31 \ No newline at end of file
    2.32 +</html>