# HG changeset patch # User Jaroslav Tulach # Date 1256571196 -3600 # Node ID 85bbddead23e9359145d208e56fdbda96272edd2 # Parent 91d56ffec4fbbe0b368a42adbbcd7b29ac7c99ac Don't show number of comments if there are none diff -r 91d56ffec4fb -r 85bbddead23e freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Mon Oct 26 11:55:28 2009 +0100 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Mon Oct 26 16:33:16 2009 +0100 @@ -55,7 +55,9 @@ <#macro game game> ${bundle("gameWhiteBlack", game.@white?string, game.@black?string)} <@before (now - game.@modified?number)?int/> - ${bundle("comments", game.@comments?number)} + <#if game.@comments?number != 0> + ${bundle("comments", game.@comments?number)} + <#assign printed = printed + 1/>