Changeset 526:3f375a048402 in documentViewer for zpt/common_template.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/common_template.zpt

    r511 r526  
    6767  </metal:block>
    6868
     69  <!-- toc type switcher -->
     70  <metal:block metal:define-macro="toc_switcher">
     71    <ul class="switcher">
     72      <li tal:attributes="class python:test(tocMode=='thumbs', 'sel', None)"><a
     73        tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
     74      </li>
     75      <li tal:attributes="class python:test(tocMode=='text', 'sel', None)"
     76        tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
     77        <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
     78      </li>
     79      <li tal:attributes="class python:test(tocMode=='figures', 'sel', None)"
     80        tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
     81        <a
     82        tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
     83      </li>
     84      <li tal:attributes="class python:test(tocMode=='concordance', 'sel', None)"
     85        tal:condition="python:docpath and docinfo.get('pageNumbers', None)">
     86        <a
     87        tal:attributes="href python:here.getLink('tocMode','concordance')">Concordance</a>
     88      </li>
     89      <li tal:attributes="class python:test(tocMode=='none', 'sel', None)"><a
     90        tal:attributes="href python:here.getLink('tocMode','none')">None</a>
     91      </li>
     92    </ul>
     93  </metal:block>
     94
    6995</body>
    7096</html>
Note: See TracChangeset for help on using the changeset viewer.