/
file.pt
24 lines (22 loc) · 1 KB
/
file.pt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="#"
tal:attributes="class string:simplelayout-block-wrapper;">
<a tal:attributes="name here/id" ></a>
<tal:define define="accessor nocall:here/getFile;
field python:here.getField('file');
fieldName string:file;
icon here/getIcon;
size python:accessor().get_size()">
<a class="fileTitle" href="" tal:attributes="href string:${here/absolute_url}/at_download/$fieldName;
style string:background:transparent url(${view/sl_portal_url}/${icon}) no-repeat top left">
<tal:filename tal:replace="here/Title | accessor/filename | fieldName"/>
<span class="discreet">
—
<tal:size content="python:'%sKb' % (size / 1024)">0Kb</tal:size>
</span>
</a>
<div class="Filedescription">
<span tal:condition="here/Description" class="documentDescription discreet" tal:content="here/Description"/>
</div>
</tal:define>
</div>
<span class="visualClear"><!-- --></span>