From: Jon B. <svn...@pl...> - 2010-08-31 17:09:21
|
Author: jbaldivieso Date: Tue Aug 31 17:09:12 2010 New Revision: 124649 Modified: collective.megaphone/trunk/src/collective/megaphone/portlets/calltoaction.pt Log: Only show "Latest signatures" text in portlet if there are signatures to show. Modified: collective.megaphone/trunk/src/collective/megaphone/portlets/calltoaction.pt ============================================================================== --- collective.megaphone/trunk/src/collective/megaphone/portlets/calltoaction.pt (original) +++ collective.megaphone/trunk/src/collective/megaphone/portlets/calltoaction.pt Tue Aug 31 17:09:12 2010 @@ -18,7 +18,7 @@ </h2> <div class="megaphone-signatures-teaser-box" - tal:condition="view/can_view_signatures"> + tal:condition="python:view.can_view_signatures and len(view.rendered_signers()) > 0"> <h3 i18n:translate="">Latest signatures</h3> <ul> <li tal:repeat="signer view/rendered_signers" |