diff zpt/toc_figures.zpt @ 526:3f375a048402

moved search and dict into separate layers. removed search_template. added tocMode=concordance. fixed bug with paging tocs.
author casties
date Tue, 10 Apr 2012 19:41:44 +0200
parents 91051b36b9cc
children 0b8bed1223ad
line wrap: on
line diff
--- a/zpt/toc_figures.zpt	Thu Apr 05 19:29:50 2012 +0200
+++ b/zpt/toc_figures.zpt	Tue Apr 10 19:41:44 2012 +0200
@@ -9,29 +9,13 @@
   <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 metal:use-macro="here/template/common_template/macros/toc_switcher"/>
     <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 -->
+  <!-- /toc -->
 </body>
 </html>