source: products/quintagroup.portlet.collection/trunk/quintagroup/portlet/collection/collection.pt @ 1572

Last change on this file since 1572 was 1572, checked in by fenix, 14 years ago

initial package import

File size: 2.3 KB
Line 
1<dl class="portlet portletCollection"
2    i18n:domain="plone"
3    tal:define="collection_url view/collection_url;
4                styling view/data/styling;
5                plone_view context/@@plone;
6                toLocalizedTime nocall:plone_view/toLocalizedTime;
7                getIcon nocall:plone_view/getIcon;"
8    tal:attributes="class string:${attrs/class} ${styling}">
9
10    <dt class="portletHeader">
11        <span class="portletTopLeft"></span>
12        <a tal:attributes="href collection_url"
13           tal:omit-tag="not:view/data/link_title">
14            <span tal:content="view/data/header" />
15        </a>
16        <span class="portletTopRight"></span>
17    </dt>
18   
19    <tal:events tal:repeat="obj view/results">
20    <dd class="portletItem"
21        tal:define="oddrow repeat/obj/odd;
22                    item_icon python:getIcon(obj);
23                    show_title python:view.showProperty('Title');
24                    show_description python:view.showProperty('Description')"
25        tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
26        <a href="#"
27           class="tile"
28           tal:attributes="href obj/getURL;
29                           title python: show_description and obj.Description or ''">
30            <img tal:replace="structure item_icon/html_tag" />
31            <span tal:condition="show_title"
32                  tal:replace="obj/pretty_title_or_id">
33             Title
34            </span>
35            <span tal:condition="show_description"
36                  tal:content="obj/Description">
37                Date
38            </span>
39            <a  tal:condition="view/data/show_item_more"
40                tal:attributes="href obj/getURL" i18n:translate="more_url">
41                More&hellip;
42            </a>
43            <span class="portletItemDetails"
44                  tal:condition="view/data/show_dates"
45                  tal:content="python:toLocalizedTime(obj.Date)">
46                Date
47            </span>
48        </a>
49    </dd>
50    </tal:events>
51   
52    <dd class="portletFooter" tal:condition="view/data/show_more">
53        <span class="portletBottomLeft"></span>
54        <span>
55        <a tal:attributes="href collection_url" i18n:translate="more_url">
56             More&hellip;
57             </a>
58        </span>
59        <span class="portletBottomRight"></span>
60    </dd>
61
62</dl>
Note: See TracBrowser for help on using the repository browser.