source: documentViewer/zpt/toc_thumbs.zpt @ 562:60f5a636bc57

Last change on this file since 562:60f5a636bc57 was 562:60f5a636bc57, checked in by casties, 12 years ago

bugfixes for stability.

  • Property exe set to *
File size: 2.2 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  <div class="toc-container" metal:define-macro="main">
9    <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
10    <!-- block used for main content area -->
11    <div class="tocbody thumbs"
12      tal:define="start pageinfo/start;
13                grpsize pageinfo/groupsize;
14                numgroups pageinfo/numgroups;
15                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
16                pageNumbers docinfo/pageNumbers | nothing;
17                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
18                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
19
20      <div class="content">
21        <h4>List of thumbnails</h4>
22        <div class="ruler top">
23          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
24        </div>
25        <table class="thumbs">
26          <tr tal:repeat="row pageBatch/pages">
27            <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
28              tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
29                tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
30                                alt idx" /><br />
31                <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
32                tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
33                tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
34            </a></td>
35          </tr>
36        </table>
37        <div class="ruler bottom">
38          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
39        </div>
40      </div>
41      <!-- content -->
42    </div>
43    <!-- toc -->
44  </div>
45</body>
46</html>
Note: See TracBrowser for help on using the repository browser.