From e0da88efbaf03bca93095d11934978527b5a658e Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Fri, 26 Jun 2009 16:03:19 +0000 Subject: [PATCH] show publish button only when comment is in "pending" workflow state. svn path=/plone.app.discussion/trunk/; revision=27673 --- plone/app/discussion/browser/moderation.pt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/moderation.pt b/plone/app/discussion/browser/moderation.pt index 8bb8927..bccb795 100644 --- a/plone/app/discussion/browser/moderation.pt +++ b/plone/app/discussion/browser/moderation.pt @@ -145,7 +145,8 @@ class="background-form" method="post" style="display: inline" - tal:attributes="action string:${item/getURL}/@@moderate-publish-comment"> + tal:attributes="action string:${item/getURL}/@@moderate-publish-comment" + tal:condition="python:item.review_state == 'pending'">