From 49aab7389be75e4ce64c02d2058777ef6e48a54b Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Thu, 28 May 2009 15:08:36 +0000 Subject: [PATCH] show the second "login to comment"-button (below the comments) only when there are replies. svn path=/plone.app.discussion/trunk/; revision=27198 --- plone/app/discussion/browser/comments.pt | 2 +- plone/app/discussion/browser/comments.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 0c400c8..4a23585 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -86,7 +86,7 @@
+ tal:condition="python: isAnon and replies">
0: + return conversation.getThreads() + else: + return False def is_anonymous(self): return self.portal_state.anonymous()