Don't show number of comments if there are none
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 26 Oct 2009 16:33:16 +0100
changeset 13985bbddead23e
parent 138 91d56ffec4fb
child 140 04f9d559b8a1
Don't show number of comments if there are none
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Mon Oct 26 11:55:28 2009 +0100
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Mon Oct 26 16:33:16 2009 +0100
     1.3 @@ -55,7 +55,9 @@
     1.4        <#macro game game>
     1.5            ${bundle("gameWhiteBlack", game.@white?string, game.@black?string)} 
     1.6            <a href="/games/${game.@id}/"><@before (now - game.@modified?number)?int/></a>
     1.7 -          ${bundle("comments", game.@comments?number)}
     1.8 +          <#if game.@comments?number != 0>
     1.9 +            ${bundle("comments", game.@comments?number)}
    1.10 +          </#if>
    1.11            <#assign printed = printed + 1/>
    1.12        </#macro>
    1.13