Changeset 607:cb5a9c4f5e3a in documentViewer for zpt/viewer/toc_thumbs.zpt
- Timestamp:
- Dec 14, 2012, 10:28:31 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer/toc_thumbs.zpt
r594 r607 11 11 <div class="tocbody thumbs" 12 12 tal:define="start pageinfo/start; 13 minPageNo docinfo/minPageNo; 14 maxPageNo docinfo/maxPageNo; 13 15 grpsize pageinfo/groupsize; 14 16 numgroups pageinfo/numgroups; … … 26 28 <tr tal:repeat="row pageBatch/pages"> 27 29 <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a 28 tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img 30 tal:define="idx thumb/idx" tal:condition="idx" 31 tal:attributes="href python:here.getLink('pn',idx); class python:test(idx<minPageNo or idx>maxPageNo, 'outside')"><img 32 tal:condition="python:docinfo.get('imageURL',None) or exists('template/text.png')" 29 33 tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png'); 30 34 alt idx;" /><br />
Note: See TracChangeset
for help on using the changeset viewer.