comparison zpt/toc_thumbs.zpt @ 563:8f2dab2d2d2a

new toc thumb replacement.
author casties
date Mon, 08 Oct 2012 12:36:11 +0200
parents 60f5a636bc57
children
comparison
equal deleted inserted replaced
562:60f5a636bc57 563:8f2dab2d2d2a
24 </div> 24 </div>
25 <table class="thumbs"> 25 <table class="thumbs">
26 <tr tal:repeat="row pageBatch/pages"> 26 <tr tal:repeat="row pageBatch/pages">
27 <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a 27 <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 28 tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
29 tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic'); 29 tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png');
30 alt idx" /><br /> 30 alt idx;" /><br />
31 <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span 31 <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
32 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" 32 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
33 tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" /> 33 tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
34 </a></td> 34 </a></td>
35 </tr> 35 </tr>