Mercurial > hg > documentViewer
annotate zpt/toc_thumbs.zpt @ 572:51800c42bcda
deal with empty repositoryType
author | casties |
---|---|
date | Mon, 15 Oct 2012 13:03:37 +0200 |
parents | 8f2dab2d2d2a |
children |
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"> |
537 | 21 <h4>List of thumbnails</h4> |
540 | 22 <div class="ruler top"> |
532 | 23 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> |
24 </div> | |
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 | |
563 | 29 tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png'); |
30 alt idx;" /><br /> | |
534 | 31 <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span |
532 | 32 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" |
534 | 33 tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" /> |
532 | 34 </a></td> |
35 </tr> | |
36 </table> | |
540 | 37 <div class="ruler bottom"> |
539 | 38 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" /> |
39 </div> | |
532 | 40 </div> |
41 <!-- content --> | |
42 </div> | |
43 <!-- toc --> | |
44 </div> | |
480 | 45 </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
|
46 </html> |