show post-comment form when user is logged in or user is not logged in and anonymous comments are allowed.

svn path=/plone.app.discussion/trunk/; revision=28817
This commit is contained in:
Timo Stollenwerk 2009-08-14 09:02:00 +00:00
parent 2a1ae7dc62
commit dff06b8c8c

View File

@ -9,7 +9,7 @@
wtool context/@@plone_tools/workflow"
tal:condition="isDiscussionAllowed"
i18n:domain="plone">
<h1 tal:content="isAnonymousDiscussionAllowed" />
<div class="reply"
tal:condition="python:isAnon and not isAnonymousDiscussionAllowed">
<form tal:attributes="action view/login_action">
@ -142,7 +142,7 @@
</form>
</div>
<div id="commenting" class="reply">
<div id="commenting" class="reply" tal:condition="python: isAnon and isAnonymousDiscussionAllowed or not isAnon">
<fieldset>