Mercurial > hg > documentViewer
annotate zpt/toc_thumbs.zpt @ 533:ea70a45594c7
set base font and stuff.
author | casties |
---|---|
date | Wed, 25 Jul 2012 21:35:26 +0200 |
parents | 0b8bed1223ad |
children | 9009cf0b0532 |
rev | line source |
---|---|
480 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | |
4 <head> | |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 </head> | |
7 <body> | |
532 | 8 <div class="toc-container" metal:define-macro="main"> |
9 <div metal:use-macro="here/template/common_template/macros/toc_switcher" /> | |
10 <!-- block used for main content area --> | |
11 <div class="tocbody thumbs" | |
12 tal:define="start pageinfo/start; | |
480 | 13 grpsize pageinfo/groupsize; |
14 numgroups pageinfo/numgroups; | |
15 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero; | |
516 | 16 pageNumbers docinfo/pageNumbers | nothing; |
480 | 17 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']); |
18 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);"> | |
91
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
19 |
532 | 20 <div class="content"> |
21 <div class="ruler"> | |
22 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> | |
23 </div> | |
480 | 24 |
532 | 25 <table class="thumbs"> |
26 <tr tal:repeat="row pageBatch/pages"> | |
27 <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a | |
28 tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img | |
480 | 29 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic'); |
532 | 30 alt idx" /><br /> |
31 <span title="Scan number" tal:content="idx" /> <span | |
32 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" | |
33 title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" /> | |
34 </a></td> | |
35 </tr> | |
36 </table> | |
37 </div> | |
38 <!-- content --> | |
39 </div> | |
40 <!-- toc --> | |
41 </div> | |
480 | 42 </body> |
523
acdbd82114bb
fixed bug with original page numbers at the end of thumbnail list.
root@tuxserve01.mpiwg-berlin.mpg.de
parents:
516
diff
changeset
|
43 </html> |