source: documentViewer/zpt/thumbs.zpt @ 19:b337f4cd3b9d

Last change on this file since 19:b337f4cd3b9d was 17:99f6bd1a797f, checked in by dwinter, 18 years ago

fist

File size: 804 bytes
Line 
1<div tal:define="cols python:3; rows python:10; start python:options['start']; end python:min(start+cols*rows,int(options['pt'])); rowsCorrected python:divmod(end-start,cols);">
2<span tal:replace="structure python:here.thumbruler(cols,rows,start,int(options['pt']))"/>
3
4<table>
5        <tr tal:repeat="i python:range(rowsCorrected[0])">
6                <td tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)">
7                <a tal:attributes="href python:here.imageLink(j+1)">
8                 <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)">
9                </a>
10                </td>
11        </tr>
12        <tr tal:condition="python:rowsCorrected[1]>0">
13                <td tal:repeat="j python:range(start+3*rowsCorrected[0],int(options['pt']))">
14                 <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)">
15                </td>
16        </tr>
17</table>
18</div>
Note: See TracBrowser for help on using the repository browser.