[2704] | 1 | <tal:items define="plone_view context/@@plone; |
---|
| 2 | toLocalizedTime nocall:plone_view/toLocalizedTime; |
---|
| 3 | getIcon nocall:plone_view/getIcon; |
---|
| 4 | page_number options/page_number|nothing" |
---|
| 5 | repeat="item options/portlet_items"> |
---|
| 6 | <dd class="portletItem" |
---|
| 7 | tal:define="oddrow repeat/item/odd; |
---|
| 8 | item_icon python:plone_view.getIcon(item); |
---|
| 9 | show_title python:view.showProperty('Title'); |
---|
| 10 | show_description python:view.showProperty('Description'); |
---|
| 11 | item_class python:oddrow and 'portletItem even' or 'portletItem odd'" |
---|
| 12 | tal:attributes="class python:page_number and item_class+' page-'+page_number or item_class"> |
---|
| 13 | <a href="#" |
---|
| 14 | class="tile" |
---|
| 15 | tal:attributes="href item/getURL; |
---|
| 16 | title python: show_description and item.Description or ''"> |
---|
| 17 | <img tal:replace="structure item_icon/html_tag" /> |
---|
| 18 | <span class="tileTitle" |
---|
| 19 | tal:condition="show_title" |
---|
| 20 | tal:content="item/pretty_title_or_id"> |
---|
| 21 | Title |
---|
| 22 | </span> |
---|
| 23 | <span class="tileDescription" |
---|
| 24 | tal:condition="show_description"> |
---|
| 25 | <tal:descr content="item/Description" /> |
---|
| 26 | <span class="tileReadMore" |
---|
| 27 | tal:condition="view/data/show_item_more" |
---|
| 28 | tal:attributes="href item/getURL" i18n:translate="more_url"> |
---|
| 29 | …more |
---|
| 30 | </span> |
---|
| 31 | </span> |
---|
| 32 | <span class="portletItemDetails" |
---|
| 33 | tal:condition="view/data/show_dates" |
---|
| 34 | tal:content="python:toLocalizedTime(item.Date)"> |
---|
| 35 | Date |
---|
| 36 | </span> |
---|
| 37 | </a> |
---|
| 38 | </dd> |
---|
| 39 | </tal:items> |
---|