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

Last change on this file since 1575 was 1575, checked in by kroman0, 14 years ago

collection.pt markup was updated

File size: 2.4 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 class="tileTitle"
32                  tal:condition="show_title"
33                  tal:content="obj/pretty_title_or_id">
34             Title
35            </span>
36            <span class="tileDescription"
37                  tal:condition="show_description">
38              <tal:descr content="obj/Description" />
39              <span class="tileReadMore"
40                    tal:condition="view/data/show_item_more"
41                    tal:attributes="href obj/getURL" i18n:translate="more_url">
42                    &hellip;more
43              </span>           
44            </span>
45            <span class="portletItemDetails"
46                  tal:condition="view/data/show_dates"
47                  tal:content="python:toLocalizedTime(obj.Date)">
48                Date
49            </span>
50        </a>
51    </dd>
52    </tal:events>
53   
54    <dd class="portletFooter" tal:condition="view/data/show_more">
55        <span class="portletBottomLeft"></span>
56        <span>
57        <a tal:attributes="href collection_url" i18n:translate="more_url">
58             More&hellip;
59             </a>
60        </span>
61        <span class="portletBottomRight"></span>
62    </dd>
63
64</dl>
Note: See TracBrowser for help on using the repository browser.