source: documentViewer/zpt/toc_thumbs.zpt @ 510:4fb35343d2e7

elementtree
Last change on this file since 510:4fb35343d2e7 was 489:55e3398e395e, checked in by casties, 13 years ago

more new templates. monkey-patch for App.ImageFile?.

File size: 3.1 KB
Line 
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 -->
9  <div class="toc-thumbs" metal:define-macro="main"
10    tal:define="start pageinfo/start;
11                grpsize pageinfo/groupsize;
12                numgroups pageinfo/numgroups;
13                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
14                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
15                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
16    <ul class="toctype">
17      <li class="sel">
18        <a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
19      </li>
20      <li tal:condition="python:docinfo.get('numTocEntries', None)">
21        <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
22      </li>
23      <li tal:condition="python:docinfo.get('numFigureEntries', None)">
24        <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
25      </li>
26      <li>
27        <a tal:attributes="href python:here.getLink('tocMode','none')">None</a>
28      </li>
29    </ul>
30
31    <div class="content">
32      <div class="ruler">
33        <form class="autosubmit" tal:attributes="action viewerUrl">
34          <input type="hidden" tal:define="params python:here.getParams('start',None)"
35            tal:repeat="param params"
36            tal:attributes="name param; value python:params[param]" />
37          <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)">&lt;</a>
38          <span tal:condition="not:left">&lt;</span>
39          <select class="autosubmit" name="start"
40            tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
41            <tal:block >
42              <option tal:repeat="grp pageBatch/batches"
43                tal:attributes="selected python:start==grp['start']; value grp/start;"
44                tal:content="string:${grp/start} - ${grp/end}" />
45            </tal:block>
46          </select>
47          <input type="submit" value="Go" />
48          <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
49          <span tal:condition="not:right">&gt;</span>
50        </form>
51      </div>
52
53      <table class="thumbs">
54        <tr tal:repeat="row pageBatch/pages">
55          <td tal:repeat="thumb row"
56            tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')">
57            <a tal:define="idx thumb/idx" tal:condition="idx"
58              tal:attributes="href python:here.getLink('pn',idx)">
59              <img
60                tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
61                                alt idx" /><br/>
62              <span tal:content="idx" />
63            </a>
64          </td>
65        </tr>
66      </table>
67    </div> <!-- content -->
68  </div> <!-- toc -->
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.