annotate zpt/toc_thumbs.zpt @ 488:ec3d848fe9e8 elementtree

more new templates
author casties
date Wed, 24 Aug 2011 10:58:20 +0200
parents 7ca8ac7db06e
children 55e3398e395e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
4 <head>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
6 </head>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
7 <body>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
8 <!-- block used for main content area -->
488
ec3d848fe9e8 more new templates
casties
parents: 482
diff changeset
9 <div class="col-left" metal:define-macro="main"
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
10 tal:define="start pageinfo/start;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
11 grpsize pageinfo/groupsize;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
12 numgroups pageinfo/numgroups;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
13 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
14 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
15 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
16 <ul class="toctype">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
17 <li class="sel">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
18 <a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
19 </li>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
20 <li tal:condition="python:docinfo.get('numTocEntries', None)">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
21 <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
22 </li>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
23 <li tal:condition="python:docinfo.get('numFigureEntries', None)">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
24 <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
25 </li>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
26 <li>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
27 <a tal:attributes="href python:here.getLink('tocMode','none')">None</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
28 </li>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
29 </ul>
91
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
30
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
31 <div class="content">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
32 <div class="ruler">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
33 <form class="autosubmit" tal:attributes="action viewerUrl">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
34 <input type="hidden" tal:define="params python:here.getParams('start',None)"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
35 tal:repeat="param params"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
36 tal:attributes="name param; value python:params[param]" />
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
37 <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)">&lt;</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
38 <span tal:condition="not:left">&lt;</span>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
39 <select class="autosubmit" name="start"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
40 tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
482
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
41 <tal:block >
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
42 <option tal:repeat="grp pageBatch/batches"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
43 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
44 tal:content="string:${grp/start} - ${grp/end}" />
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
45 </tal:block>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
46 </select>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
47 <input type="submit" value="Go" />
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
48 <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
49 <span tal:condition="not:right">&gt;</span>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
50 </form>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
51 </div>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
52
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
53 <table class="thumbs">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
54 <tr tal:repeat="row pageBatch/pages">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
55 <td tal:repeat="thumb row"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
56 tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
57 <a tal:define="idx thumb/idx" tal:condition="idx"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
58 tal:attributes="href python:here.getLink('pn',idx)">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
59 <img
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
60 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
61 alt idx" /><br/>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
62 <span tal:content="idx" />
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
63 </a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
64 </td>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
65 </tr>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
66 </table>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
67 </div> <!-- content -->
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
68 </div> <!-- toc -->
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
69 </body>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
70 </html>