comparison zpt/common_template.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 551ca1641a5e
children 652cc8d3f1a9
comparison
equal deleted inserted replaced
525:70c3ae5eac7c 526:3f375a048402
64 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" 64 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart"
65 tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span> 65 tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span>
66 </form> 66 </form>
67 </metal:block> 67 </metal:block>
68 68
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
69 </body> 95 </body>
70 </html> 96 </html>