Mercurial > hg > documentViewer
annotate zpt/toc_figures.zpt @ 517:aaacdf551f6f
remove global info from processPageInfo.
| author | casties |
|---|---|
| date | Mon, 05 Mar 2012 19:11:59 +0100 |
| parents | 29c6d09a506c |
| children | 91051b36b9cc |
| rev | line source |
|---|---|
| 481 | 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> | |
| 8 <!-- block used for main content area --> | |
|
489
55e3398e395e
more new templates. monkey-patch for App.ImageFile.
casties
parents:
488
diff
changeset
|
9 <div class="toc-figures" metal:define-macro="main" |
|
482
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
10 tal:define="start pageinfo/start; tocsize docinfo/tocSize_figures; grpsize pageinfo/tocPageSize; |
|
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
11 batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> |
| 481 | 12 <ul class="switcher"> |
| 13 <li><a | |
| 14 tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> | |
| 15 </li> | |
| 16 <li | |
| 17 tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> | |
| 18 <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> | |
| 19 </li> | |
|
482
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
20 <li class="sel" |
| 481 | 21 tal:condition="python:docpath and docinfo.get('numFigureEntries', None)"> |
| 22 <a | |
| 23 tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a> | |
| 24 </li> | |
| 25 <li><a | |
| 26 tal:attributes="href python:here.getLink('tocMode','none')">None</a> | |
| 27 </li> | |
| 28 </ul> | |
| 29 <div class="ruler"> | |
| 501 | 30 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler"/> |
| 481 | 31 </div> |
| 32 <div class="content" | |
|
482
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
33 tal:content="structure python:here.getTocPage(mode='figures',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> |
| 481 | 34 </div> |
| 35 <!-- toc --> | |
| 36 </body> | |
| 37 </html> |
