This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
pfwbged.collection/src/pfwbged/collection/portlet.pt

36 lines
1.4 KiB
XML

<dl class="portlet portletCollection"
i18n:domain="plone"
tal:define="collection_url view/collection_url;
plone_view context/@@plone;
toLocalizedTime nocall:plone_view/toLocalizedTime;
viewActions here/portal_properties/site_properties/typesUseViewActionInListings|python:();"
tal:attributes="class string:portlet portletCollection ${view/css_class}">
<dt class="portletHeader">
<span class="portletTopLeft"></span>
<a tal:attributes="href collection_url" tal:omit-tag="not:view/data/show_more">
<span tal:content="view/data/header" />
</a>
<span class="portletTopRight"></span>
</dt>
<dd class="portletItem" tal:define="table python: view.table()"
tal:condition="table">
<div tal:attributes="class python: table.__class__.__name__"
tal:content="structure python: table.render()">
</div>
</dd>
<dd class="portletFooter">
<span class="portletBottomLeft"></span>
<span tal:condition="view/data/show_more">
<a tal:attributes="href collection_url">
<span class="hiddenStructure"><span tal:replace="view/data/header" /> - </span>
<span i18n:translate="more_url">More&hellip;</span>
</a>
</span>
<span class="portletBottomRight"></span>
</dd>
</dl>