annotate zpt/toc_text.zpt @ 482:7ca8ac7db06e elementtree

more new template stuff. more batching methods in documentViewer.
author casties
date Tue, 16 Aug 2011 18:27:08 +0200
parents 0a0f7f570f90
children ec3d848fe9e8
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 -->
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
9 <div class="col_left" 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_text; 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);">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
12 <ul class="switcher">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
13 <li><a
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
14 tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
15 </li>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
16 <li class="sel"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
17 tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
18 <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
19 </li>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
20 <li
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
21 tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
22 <a
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
23 tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
24 </li>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
25 <li><a
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
26 tal:attributes="href python:here.getLink('tocMode','none')">None</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
27 </li>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
28 </ul>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
29 <div class="ruler">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
30 <form class="autosubmit" tal:attributes="action viewerUrl">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
31 <input type="hidden"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
32 tal:define="params python:here.getParams('start', None)"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
33 tal:repeat="param params"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
34 tal:attributes="name param; value python:params[param]" />
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
35 <a tal:condition="batch/prevStart"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
36 tal:attributes="href python:here.getLink('start',batch['prevStart'])">&lt;</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
37 <span tal:condition="not:batch/prevStart">&lt;</span>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
38 <select class="autosubmit" name="start">
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
39 <option tal:repeat="grp batch/batches"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
40 tal:attributes="selected python:(start==grp['start']); value grp/start"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
41 tal:content="string:${grp/start} - ${grp/end}" />
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
42 </select>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
43 <input type="submit" value="Go" />
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
44 <a tal:condition="batch/nextStart"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
45 tal:attributes="href python:here.getLink('start',batch['nextStart'])">&gt;</a>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
46 <span tal:condition="not:batch/nextStart">&gt;</span>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
47 </form>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
48 </div>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
49 <div class="content"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
50 tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
51 </div>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
52 <!-- toc -->
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
53 </body>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
54 </html>