annotate zpt/toc_figures.zpt @ 518:91051b36b9cc

uses xml info from doc-info.xql for table of contents now.
author casties
date Mon, 12 Mar 2012 19:01:14 +0100
parents 29c6d09a506c
children 3f375a048402
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
4 <head>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
6 </head>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
7 <body>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
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"
518
91051b36b9cc uses xml info from doc-info.xql for table of contents now.
casties
parents: 501
diff changeset
10 tal:define="start pageinfo/start; tocsize docinfo/numFigureEntries; grpsize pageinfo/tocPageSize;
482
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
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
12 <ul class="switcher">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
13 <li><a
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
14 tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
15 </li>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
16 <li
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
17 tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
18 <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
19 </li>
482
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
20 <li class="sel"
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
21 tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
22 <a
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
23 tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
24 </li>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
25 <li><a
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
26 tal:attributes="href python:here.getLink('tocMode','none')">None</a>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
27 </li>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
28 </ul>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
29 <div class="ruler">
501
29c6d09a506c more cleanup.
casties
parents: 489
diff changeset
30 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler"/>
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
31 </div>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
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
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
34 </div>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
35 <!-- toc -->
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
36 </body>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
37 </html>