rendered paste body<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
i18n:domain="plone">
<body>
<div metal:define-macro="portlet">
<dl class="portlet" id="portlet-products">
<dt class="portletHeader">
<a href="#"
tal:condition="python:'products' in portal.contentIds()"
tal:attributes="href string:${utool}/news"
i18n:translate="box_news">Products</a>
<a href="#"
tal:condition="python:'products' not in portal.contentIds()"
tal:attributes="href string:${utool}/news_listing"
i18n:translate="box_news">Products</a>
</dt>
<tal:events tal:repeat="obj results">
<dd class="portletItem"
tal:define="oddrow repeat/obj/odd"
tal:attributes="class python:test(oddrow, 'portletItem even', 'portletItem odd')">
<a href="#"
tal:attributes="href obj/getURL;
title obj/Description">
<img src="#" alt="" tal:replace="structure here/event_icon.gif" />
<span tal:replace="obj/pretty_title_or_id">
Some Event
</span>
<span class="portletItemDetails">
<tal:condition condition="obj/location">
<tal:location content="obj/location">Location</tal:location>, <br />
</tal:condition>
<tal:date content="python:here.toLocalizedTime(obj.start)">
May 5
</tal:date>
</span>
</a>
</dd>
</tal:events>
<dd class="portletFooter">
<a href="" tal:attributes="href string:${utool}/products">
More products
</a>
</dd>
</dl>
</div>
</body>
</html>