annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
dwinter
parents:
diff changeset
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);">
dwinter
parents:
diff changeset
2 <span tal:replace="structure python:here.thumbruler(cols,rows,start,int(options['pt']))"/>
dwinter
parents:
diff changeset
3
dwinter
parents:
diff changeset
4 <table>
dwinter
parents:
diff changeset
5 <tr tal:repeat="i python:range(rowsCorrected[0])">
dwinter
parents:
diff changeset
6 <td tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)">
dwinter
parents:
diff changeset
7 <a tal:attributes="href python:here.imageLink(j+1)">
dwinter
parents:
diff changeset
8 <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)">
dwinter
parents:
diff changeset
9 </a>
dwinter
parents:
diff changeset
10 </td>
dwinter
parents:
diff changeset
11 </tr>
dwinter
parents:
diff changeset
12 <tr tal:condition="python:rowsCorrected[1]>0">
dwinter
parents:
diff changeset
13 <td tal:repeat="j python:range(start+3*rowsCorrected[0],int(options['pt']))">
dwinter
parents:
diff changeset
14 <img tal:attributes="src python:options['imageUrl']+'&pn=%i&dw=100&dh=100'%(j+1)">
dwinter
parents:
diff changeset
15 </td>
dwinter
parents:
diff changeset
16 </tr>
dwinter
parents:
diff changeset
17 </table>
dwinter
parents:
diff changeset
18 </div>