Mercurial > hg > documentViewer
diff zpt/toc_text.zpt @ 537:ad6f97fd3944
fixes closing tickets concerning tocs.
author | casties |
---|---|
date | Fri, 27 Jul 2012 17:09:59 +0200 |
parents | 0b8bed1223ad |
children | 37d122560028 |
line wrap: on
line diff
--- a/zpt/toc_text.zpt Thu Jul 26 21:22:56 2012 +0200 +++ b/zpt/toc_text.zpt Fri Jul 27 17:09:59 2012 +0200 @@ -5,18 +5,19 @@ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> - <div class="toc-container" metal:define-macro="main"> + <div class="toc-container" metal:define-macro="main" + tal:define="start pageinfo/start; tocsize docinfo/numTocEntries; grpsize pageinfo/tocPageSize; + batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> <div metal:use-macro="here/template/common_template/macros/toc_switcher" /> <!-- block used for main content area --> - <div class="tocbody text" - tal:define="start pageinfo/start; tocsize docinfo/numTocEntries; grpsize pageinfo/tocPageSize; - batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> + <div class="tocbody text"> + <h4>Table of contents</h4> <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='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> </div> </div> - <!-- toc --> + <!-- toc --> </body> </html>