From 837e6b2966e00a0d490b5230bf8c6478ccd0c8aa Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Tue, 5 Oct 2010 12:07:08 +0000 Subject: [PATCH] Do not show two "login to add comments" buttons when there are no comments yet. This fixes http://plone.org/products/plone.app.discussion/issues/12. svn path=/plone.app.discussion/trunk/; revision=40515 --- CHANGES.txt | 4 +++- plone/app/discussion/browser/comments.pt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 75239b6..58bc093 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -4,7 +4,9 @@ Changelog 1.0b9 (unreleased) ------------------ -- Nothing changed yet. +- Do not show two "login to add comments" buttons when there are no comments + yet. This fixes http://plone.org/products/plone.app.discussion/issues/12. + [timo] 1.0b8 (2010-10-04) diff --git a/plone/app/discussion/browser/comments.pt b/plone/app/discussion/browser/comments.pt index 6225842..84dc12e 100644 --- a/plone/app/discussion/browser/comments.pt +++ b/plone/app/discussion/browser/comments.pt @@ -129,7 +129,7 @@
+ tal:condition="python:has_replies and (isAnon and not isAnonymousDiscussionAllowed)">