[gen] Optimized PXs, that are almost ready. This is the last gen version where PTs are still working.
This commit is contained in:
parent
efd918f175
commit
d385b8514e
14 changed files with 207 additions and 210 deletions
|
@ -27,7 +27,7 @@ class File(Field):
|
|||
pxView = pxCell = Px('''
|
||||
<x var="info=field.getFileInfo(value);
|
||||
empty=not info.size;
|
||||
imgSrc='%s/download?name=%s' % (contextObj.absolute_url(), name)">
|
||||
imgSrc='%s/download?name=%s' % (zobj.absolute_url(), name)">
|
||||
<x if="not empty and not field.isImage">
|
||||
<a href=":imgSrc">:info.filename</a> -
|
||||
<i class="discreet">'%sKb' % (info.size / 1024)"></i>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue