Il faut écouter l'événement « readystatechange » plutôt que « load » pour récupérer...
[Plinn.git] / skins / content / content_info.pt
1 <div tal:define="locale_date_fmt string:%m/%d/%Y %Hh%M;
2 portal_url here/portal_url;
3 ti here/getTypeInfo;
4 icon ti/getIcon">
5 <table class="finder_preview">
6 <tr>
7 <td colspan="2">
8 <div>Preview:</div>
9 <div class="thumbnail">
10 <img tal:attributes="src python:portal_url + '/' + icon.replace('.gif', '.thumb.gif'); alt here/title_or_id" width="128" height="128"/>
11 </div>
12 </td>
13 </tr>
14 <tr>
15 <th>Title</th>
16 <td tal:content="here/title_or_id">File title</td>
17 </tr>
18 <tr>
19 <th>Created</th>
20 <td tal:content="python:here.created().strftime(locale_date_fmt)">creation date</td>
21 </tr>
22 <tr>
23 <th>Modified</th>
24 <td tal:content="python:here.modified().strftime(locale_date_fmt)">modification date</td>
25 </tr>
26 </table>
27 <em tal:define="desc here/Description" tal:condition="desc" tal:content="structure desc"></em>
28 </div>