view zpt/viewer/toc_thumbs.zpt @ 594:da7daa783df4

rearranged viewer templates into folder.
author casties
date Fri, 16 Nov 2012 17:16:50 +0100
parents zpt/toc_thumbs.zpt@8f2dab2d2d2a
children cb5a9c4f5e3a
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
  <div class="toc-container" metal:define-macro="main">
    <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
    <!-- block used for main content area -->
    <div class="tocbody thumbs"
      tal:define="start pageinfo/start;
                grpsize pageinfo/groupsize;
                numgroups pageinfo/numgroups;
                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
                pageNumbers docinfo/pageNumbers | nothing;
                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">

      <div class="content">
        <h4>List of thumbnails</h4>
        <div class="ruler top">
          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
        </div>
        <table class="thumbs">
          <tr tal:repeat="row pageBatch/pages">
            <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
              tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
                tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png');
                                alt idx;" /><br />
                <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
                tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
                tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
            </a></td>
          </tr>
        </table>
        <div class="ruler bottom">
          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
        </div>
      </div>
      <!-- content -->
    </div>
    <!-- toc -->
  </div>
</body>
</html>