view zpt/toc_figures.zpt @ 518:91051b36b9cc

uses xml info from doc-info.xql for table of contents now.
author casties
date Mon, 12 Mar 2012 19:01:14 +0100
parents 29c6d09a506c
children 3f375a048402
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>
  <!-- block used for main content area -->
  <div class="toc-figures" metal:define-macro="main"
    tal:define="start pageinfo/start; tocsize docinfo/numFigureEntries; grpsize pageinfo/tocPageSize;
                batch python:here.getBatch(start=start,size=grpsize,end=tocsize);">
    <ul class="switcher">
      <li><a
        tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
      </li>
      <li
        tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
        <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
      </li>
      <li class="sel"
        tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
        <a
        tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
      </li>
      <li><a
        tal:attributes="href python:here.getLink('tocMode','none')">None</a>
      </li>
    </ul>
    <div class="ruler">
        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler"/>
    </div>
    <div class="content"
      tal:content="structure python:here.getTocPage(mode='figures',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
  </div>
  <!-- toc -->
</body>
</html>