Last change
on this file since 23:a6d39ef1c7cc was
22:b139f9937e97,
checked in by casties, 18 years ago
|
preliminary version 0.2
- lots of stuff rewritten
- new template system
- still no access control
|
File size:
1.3 KB
|
Line | |
---|
1 | <div tal:define="cols python:2; rows python:10; docinfo python:options['docinfo']; pageinfo python:options['pageinfo']; start python:pageinfo['start']; end python:min(start+cols*rows,int(docinfo['numberOfPages'])); current pageinfo/current; rowsCorrected python:divmod(end-start,cols);"> |
---|
2 | <span tal:replace="structure python:here.thumbruler(cols,rows,start,int(docinfo['numberOfPages']))"/> |
---|
3 | |
---|
4 | <table> |
---|
5 | <tr tal:repeat="i python:range(rowsCorrected[0])"> |
---|
6 | <td align="center" tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)" |
---|
7 | tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')"> |
---|
8 | <a tal:attributes="href python:here.imageLink(j+1)"> |
---|
9 | <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/> |
---|
10 | <div class="thumbcap" tal:content="python:(j+1)"/> |
---|
11 | </a> |
---|
12 | </td> |
---|
13 | </tr> |
---|
14 | <tr tal:condition="python:rowsCorrected[1]>0"> |
---|
15 | <td align="center" tal:repeat="j python:range(start+cols*rowsCorrected[0],int(docinfo['numberOfPages']))" |
---|
16 | tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')"> |
---|
17 | <a tal:attributes="href python:here.imageLink(j+1)"> |
---|
18 | <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/> |
---|
19 | <div class="thumbcap" tal:content="python:(j+1)"/> |
---|
20 | </a> |
---|
21 | </td> |
---|
22 | </tr> |
---|
23 | </table> |
---|
24 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.