Mercurial > hg > documentViewer
view zpt/thumbs.zpt @ 17:99f6bd1a797f
fist
author | dwinter |
---|---|
date | Sun, 18 Dec 2005 13:35:02 +0100 |
parents | |
children |
line wrap: on
line source
<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);"> <span tal:replace="structure python:here.thumbruler(cols,rows,start,int(options['pt']))"/> <table> <tr tal:repeat="i python:range(rowsCorrected[0])"> <td tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)"> <a tal:attributes="href python:here.imageLink(j+1)"> <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)"> </a> </td> </tr> <tr tal:condition="python:rowsCorrected[1]>0"> <td tal:repeat="j python:range(start+3*rowsCorrected[0],int(options['pt']))"> <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)"> </td> </tr> </table> </div>