Annotation of documentViewer/zpt/thumbs.zpt, revision 1.1
1.1 ! dwinter 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>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>