Mercurial > hg > documentViewer
view zpt/thumbs.zpt @ 21:0af46e75de3c
preliminary version 0.2
- lots of stuff rewritten
- new template system
- still no access control
author | casties |
---|---|
date | Thu, 06 Apr 2006 19:13:43 +0200 |
parents | 99f6bd1a797f |
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>