|
| 1 | +<html xmlns="http://www.w3.org/1999/xhtml" |
| 2 | + xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
| 3 | + xmlns:metal="http://xml.zope.org/namespaces/metal" |
| 4 | + xmlns:tal="http://xml.zope.org/namespaces/tal" lang="en" metal:use-macro="context/@@main_template/macros/master" xml:lang="en" i18n:domain="plone"> |
| 5 | + <body> |
| 6 | + |
| 7 | + <metal:content-core fill-slot="content-core"> |
| 8 | + <metal:block define-macro="content-core"> |
| 9 | + |
| 10 | + <metal:listingmacro define-macro="listing"> |
| 11 | + <tal:results define=" |
| 12 | + batch view/batch; |
| 13 | + "> |
| 14 | + <tal:listing condition="batch"> |
| 15 | + <div class="entries" metal:define-slot="entries"> |
| 16 | + <tal:repeat metal:define-macro="entries" repeat="item batch"> |
| 17 | + <tal:block tal:define=" |
| 18 | + obj item/getObject; |
| 19 | + item_url item/getURL; |
| 20 | + item_id item/getId; |
| 21 | + item_title item/Title; |
| 22 | + item_description item/Description; |
| 23 | + item_type item/PortalType; |
| 24 | + item_modified item/ModificationDate; |
| 25 | + item_created item/CreationDate; |
| 26 | + item_type_class python:'contenttype-' + view.normalizeString(item_type); |
| 27 | + item_wf_state item/review_state; |
| 28 | + item_wf_state_class python:'state-' + view.normalizeString(item_wf_state); |
| 29 | + item_creator item/Creator; |
| 30 | + item_link python:item_type in view.use_view_action and item_url+'/view' or item_url; |
| 31 | + item_has_image python:item.getIcon; |
| 32 | + "> |
| 33 | + <metal:block define-slot="entry"> |
| 34 | + <article class="entry"> |
| 35 | + <header metal:define-macro="listitem"> |
| 36 | + <span class="summary" tal:attributes=" |
| 37 | + title item_type; |
| 38 | + "> |
| 39 | + <a tal:attributes=" |
| 40 | + href item_link; |
| 41 | + "> |
| 42 | + <img class="image-tile" tal:condition="item_has_image" tal:attributes=" |
| 43 | + src string:$item_url/@@images/image/tile; |
| 44 | + " /> |
| 45 | + </a> |
| 46 | + <a tal:content="python: item_title or item_id" tal:attributes=" |
| 47 | + href item_link; |
| 48 | + class string:$item_type_class $item_wf_state_class url; |
| 49 | + title item_type; |
| 50 | + "> |
| 51 | + |
| 52 | + Item Title |
| 53 | + </a> |
| 54 | + </span> |
| 55 | + <metal:block metal:define-macro="document_byline"> |
| 56 | + <div class="documentByLine"> |
| 57 | + <tal:byline condition="view/show_about"> |
| 58 | + — |
| 59 | + <tal:name tal:define=" |
| 60 | + author python:view.pas_member.info(item_creator); |
| 61 | + creator_short_form author/username; |
| 62 | + creator_long_form string:?author=${author/username}; |
| 63 | + creator_is_openid python:'/' in creator_short_form; |
| 64 | + creator_id python:(creator_short_form, creator_long_form)[creator_is_openid]; |
| 65 | + " tal:condition="item_creator"> |
| 66 | + <span i18n:translate="label_by_author"> |
| 67 | + by |
| 68 | + <a tal:content="author/name_or_id" tal:omit-tag="not:author" tal:attributes=" |
| 69 | + href string:${view/navigation_root_url}/author/${item_creator}; |
| 70 | + " i18n:name="author"> |
| 71 | + Bob Dobalina |
| 72 | + </a> |
| 73 | + </span> |
| 74 | + </tal:name> |
| 75 | + |
| 76 | + <tal:modified> |
| 77 | + — |
| 78 | + <tal:mod i18n:translate="box_last_modified">last modified</tal:mod> |
| 79 | + <span tal:replace="python:view.toLocalizedTime(item_modified,long_format=1)"> |
| 80 | + August 16, 2001 at 23:35:59 |
| 81 | + </span> |
| 82 | + </tal:modified> |
| 83 | + |
| 84 | + <metal:description define-slot="description_slot"> |
| 85 | + <tal:comment replace="nothing"> |
| 86 | + Place custom listing info for custom types here |
| 87 | + </tal:comment> |
| 88 | + </metal:description> |
| 89 | + </tal:byline> |
| 90 | + </div> |
| 91 | + </metal:block> |
| 92 | + </header> |
| 93 | + <p class="description discreet" tal:condition="item_description" tal:content="item_description"> |
| 94 | + description |
| 95 | + </p> |
| 96 | + </article> |
| 97 | + </metal:block> |
| 98 | + </tal:block> |
| 99 | + </tal:repeat> |
| 100 | + </div> |
| 101 | + |
| 102 | + <div metal:use-macro="context/batch_macros/macros/navigation"></div> |
| 103 | + |
| 104 | + </tal:listing> |
| 105 | + |
| 106 | + <metal:empty metal:define-slot="no_items_in_listing"> |
| 107 | + <p class="discreet" tal:condition="not: view/batch" tal:content="view/no_items_message"> |
| 108 | + There are currently no items in this folder. |
| 109 | + </p> |
| 110 | + </metal:empty> |
| 111 | + |
| 112 | + </tal:results> |
| 113 | + </metal:listingmacro> |
| 114 | + |
| 115 | + </metal:block> |
| 116 | + </metal:content-core> |
| 117 | + |
| 118 | + </body> |
| 119 | +</html> |
0 commit comments