Traduction de « Huge Folder »
[Plinn.git] / skins / generic / search_results_template.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
2 xmlns:metal="http://xml.zope.org/namespaces/metal"
3 metal:use-macro="here/main_template/macros/master">
4 <head>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
6 </head>
7 <body>
8 <div metal:fill-slot="main_no_tabs" i18n:domain="plinn" tal:omit-tag=""
9 tal:define="b_start python:0;b_start request/b_start | b_start;
10 results options/results;
11 stext request/SearchableText|nothing;
12 resultsLength options/resultsLength;
13 Batch python:modules['Products.Plinn'].Batch;
14 batch python:Batch(results, here.default_batch_size, b_start, orphan=1, quantumleap=1);
15 mch nocall:options/makeColumnHeader">
16 <h2 i18n:translate="">Search Results</h2>
17 <div tal:condition="resultsLength" tal:omit-tag="">
18 <p i18n:translate=""
19 tal:condition="stext">Found <span tal:replace="python:len(results)"
20 i18n:name="count">100</span> <span i18n:name="item_s_match"
21 tal:content="python:resultsLength > 1 and 'items matching' or 'item matching'"
22 i18n:translate=""
23 tal:omit-tag="">items matching</span> '<span
24 tal:replace="request/SearchableText"
25 i18n:name="text">search term</span>'.</p>
26 <div tal:condition="not:stext">
27 <p tal:condition="python:resultsLength==1" i18n:translate="">Found 1 item.</p>
28 <p tal:condition="python:resultsLength>1" i18n:translate="">Found <span i18n:name="count" tal:content="resultsLength" tal:omit-tag="">2</span> items.</p>
29 </div>
30 </div>
31 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
32 <table class="listing" tal:condition="results" cellspacing="0">
33 <thead>
34 <tr>
35 <th width="16"><br/></th>
36 <th tal:define="ci python:mch('fTitle')">
37 <a i18n:translate="" tal:attributes="href ci/url">Title</a>
38 <img tal:condition="ci/img" tal:attributes="src ci/img/src; alt ci/img/alt"/>
39 </th>
40 <th tal:define="ci python:mch('Creator')">
41 <a i18n:translate="" tal:attributes="href ci/url">Creator</a>
42 <img tal:condition="ci/img" tal:attributes="src ci/img/src; alt ci/img/alt"/>
43 </th>
44 <th tal:define="ci python:mch('modified')">
45 <a i18n:translate="" tal:attributes="href ci/url">Last modified</a>
46 <img tal:condition="ci/img" tal:attributes="src ci/img/src; alt ci/img/alt"/>
47 </th>
48 </tr>
49 </thead>
50 <tbody tal:repeat="result batch" tal:omit-tag="">
51 <tr tal:define="objURL result/getURL;
52 oddrow repeat/result/odd"
53 tal:attributes="class python:test(oddrow, 'even', 'odd')">
54 <td>
55 <a tal:condition="result/getIcon|nothing"
56 tal:attributes="href objURL">
57 <img src="" border="0"
58 tal:define="alt result/Type"
59 tal:attributes="src result/getIcon;alt alt;title alt" />
60 </a>
61 </td>
62 <td>
63 <a tal:attributes="href objURL">
64 <span tal:condition="result/Title" tal:replace="result/Title">Title</span>
65 <span tal:condition="not:result/Title" tal:omit-tag="" i18n:translate="">(No title)</span>
66 </a>
67 </td>
68 <td tal:content="python:mtool.getMembers(result.listCreators)[0].getMemberFullName(nameBefore=0)"
69 tal:on-error="python:len(result.listCreators) and result.listCreators[0] or ''"></td>
70 <td tal:content="python:result.modified.strftime(locale_date_fmt)">Date</td>
71 </tr>
72 <tr tal:condition="result/Description">
73 <td><br/></td>
74 <td colspan="3">
75 <em tal:content="structure result/Description">Description</em>
76 </td>
77 </tr>
78 </tbody>
79 </table>
80 <form tal:condition="options/canSaveAsTopic"
81 tal:attributes="action string:$portal_url/save_search_as_topic"
82 method="post">
83 <h3 i18n:translate="">Save this search as topic</h3>
84 <span i18n:translate="" tal:omit-tag="">Title:</span>
85 <input type="text" name="topic_title"/>
86 <div tal:replace="structure options/queryAsHiddenInputs"></div>
87 <input type="submit" name="addTopic" value="Save" i18n:attributes="value"/>
88 </form>
89 <p tal:condition="not:results" i18n:translate="">There are no items matching your specified criteria.</p>
90 </div>
91 </body>
92 </html>