Merge des modifications récentes opérées dans le script final d'installation de Plinn.
[Plinn.git] / skins / photo_theme / search_results_macros.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal">
2 <head>
3 <title>Macros utilisées pour l'affichage des résultats</title>
4 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
5 </head>
6 <body>
7 <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
8 <table metal:define-macro="normal" class="listing" cellspacing="0">
9 <thead>
10 <tr>
11 <td width="16">&nbsp;</td>
12 <th i18n:translate="">Title</th>
13 <th i18n:translate="">Creator</th>
14 <th i18n:translate="">Type</th>
15 <th i18n:translate="">Date</th>
16 </tr>
17 </thead>
18 <tbody tal:repeat="result batch" tal:omit-tag="">
19 <tr tal:define="objURL result/getURL;
20 oddrow repeat/result/odd"
21 tal:attributes="class python:test(oddrow, 'even', 'odd')">
22 <td><a href=""
23 tal:condition="result/getIcon|nothing"
24 tal:attributes="href objURL"><img src="" border="0" alt="" title=""
25 tal:define="alt result/Type"
26 tal:attributes="src result/getIcon;
27 alt alt;
28 title alt" /></a></td>
29 <td><a href=""
30 tal:attributes="href objURL"><span
31 tal:condition="result/Title"
32 tal:replace="result/Title">Title</span><span
33 tal:condition="not:result/Title"
34 tal:omit-tag=""
35 i18n:translate="">(No title)</span></a></td>
36 <td tal:content="python:mtool.getMembers([result.Creator])[0].getMemberFullName(nameBefore=0)"
37 tal:on-error="result/Creator"></td>
38 <td tal:content="result/Type" i18n:translate="">Type</td>
39 <td tal:content="python:modules['DateTime'].DateTime(result.Date).strftime(locale_date_fmt)">Date</td>
40 </tr>
41 <tr>
42 <td>&nbsp;</td>
43 <td colspan="4"><em
44 tal:condition="result/Description"
45 tal:content="structure result/Description">Description</em><em
46 tal:condition="not:result/Description"
47 i18n:translate="">(No description)</em></td>
48 </tr>
49 </tbody>
50 </table>
51
52 <div metal:define-macro="photo"
53 tal:define="slide_size python:portal_object.slide_size">
54 <div tal:define="contextInfo python:here.getPhotoBrainsInfos(batch, searchArgs);
55 infos contextInfo/infos;
56 features contextInfo/features"
57 tal:omit-tag="">
58 <div metal:use-macro="here/photo_layout_macros/macros/grid"></div>
59 </div>
60 </div>
61 </body>
62 </html>