forked from collective/collective.portlet.ngcollection
/
ngcollection.pt
50 lines (46 loc) · 1.78 KB
/
ngcollection.pt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<dl class="portlet portletCollection"
i18n:domain="plone"
tal:define="collection_url view/collection_url;
plone_view context/@@plone;
toLocalizedTime nocall:plone_view/toLocalizedTime;
getIcon nocall:plone_view/getIcon;"
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>
<tal:events tal:repeat="obj view/results">
<dd class="portletItem"
tal:define="oddrow repeat/obj/odd;
item_icon python:getIcon(obj);"
tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
<a href="#"
class="tile"
tal:attributes="href obj/getURL;
title obj/Description">
<img tal:replace="structure item_icon/html_tag" />
<span tal:replace="obj/pretty_title_or_id">
Title
</span>
<span class="portletItemDetails"
tal:condition="view/data/show_dates"
tal:content="python:toLocalizedTime(obj.Date)">
Date
</span>
</a>
</dd>
</tal:events>
<dd class="portletFooter" tal:condition="view/data/show_more">
<span class="portletBottomLeft"></span>
<span>
<a tal:attributes="href collection_url"
tal:content="structure view/show_more_label">
More…
</a>
</span>
<span class="portletBottomRight"></span>
</dd>
</dl>