annotate zpt/toc_thumbs.zpt @ 91:b8c491e52ebc

new version with new full-text infrastructure and some more changed templates
author casties
date Thu, 08 Apr 2010 13:04:51 +0200
parents
children 9d08a21fdd83
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
91
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
1 <div tal:define="docinfo options/docinfo; pageinfo options/pageinfo;
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
2 start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols;
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
3 current pageinfo/current; grpsize pageinfo/groupsize">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
4
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
5 <div class="thumbruler">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
6 <span tal:condition="python:(start>1)">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
7 <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))">&lt;</a>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
8 </span>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
9 <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
10 <option tal:repeat="grp python:range(pageinfo['numgroups'])"
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
11 tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
12 tal:content="python:(grp*grpsize+1)"/>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
13 </select>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
14 <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
15 <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">&gt;</a>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
16 </span>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
17 </div>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
18 <table>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
19 <tr tal:repeat="row python:range(rows)">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
20 <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
21 <td align="center" tal:condition="python:(idx<=end)"
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
22 tal:attributes="class python:here.getStyle(idx,current,'thumb')">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
23 <a tal:attributes="href python:here.getLink(param='pn',val=idx)">
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
24 <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
25 <div class="thumbcap" tal:content="idx"/>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
26 </a>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
27 </td>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
28 </tal:block>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
29 </tr>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
30 </table>
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
31 </div>