Mercurial > hg > documentViewer
view zpt/toc_text.zpt @ 465:224aad394350 elementtree
really works with new getDocinfo
author | casties |
---|---|
date | Fri, 29 Jul 2011 20:36:04 +0200 |
parents | 027134cca83e |
children | 0a0f7f570f90 |
line wrap: on
line source
<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']); maxpn python:int(tocsize/grpsize);"> <div class="thumbruler"> <span tal:condition="python:(pn>1)"> <a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)"><</a> </span> <span tal:content="string:$pn of $tocsize"/> <span> <a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">></a> </span> </div> <div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/> </tal:block>