Changeset 526:3f375a048402 in documentViewer for zpt/toc_text.zpt


Ignore:
Timestamp:
Apr 10, 2012, 5:41:44 PM (12 years ago)
Author:
casties
Branch:
default
Message:

moved search and dict into separate layers.
removed search_template.
added tocMode=concordance.
fixed bug with paging tocs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/toc_text.zpt

    r518 r526  
    1010    tal:define="start pageinfo/start; tocsize docinfo/numTocEntries; grpsize pageinfo/tocPageSize;
    1111                batch python:here.getBatch(start=start,size=grpsize,end=tocsize);">
    12     <ul class="switcher">
    13       <li><a
    14         tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
    15       </li>
    16       <li class="sel"
    17         tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
    18         <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
    19       </li>
    20       <li
    21         tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
    22         <a
    23         tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
    24       </li>
    25       <li><a
    26         tal:attributes="href python:here.getLink('tocMode','none')">None</a>
    27       </li>
    28     </ul>
     12    <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
    2913    <div class="ruler">
    3014        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler"/>
Note: See TracChangeset for help on using the changeset viewer.