Changeset 122:027134cca83e in documentViewer for zpt/toc_text.zpt
- Timestamp:
- May 25, 2010, 2:36:24 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/toc_text.zpt
r94 r122 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 </head> 7 <body> 8 <!-- block used for main content area --> 9 <metal:block metal:define-macro="main"> 10 <tal:block tal:define="pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']); 11 maxpn python:int(tocsize/grpsize);"> 12 <div class="thumbruler"> 13 <span tal:condition="python:(pn>1)"> 14 <a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)"><</a> 15 </span> 16 <span tal:content="string:$pn of $maxpn"/> 17 <span> 18 <a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">></a> 19 </span> 20 </div> 21 <div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/> 22 </tal:block> 23 </metal:block> 24 </body> 25 </html> 1 <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; 2 pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']); 3 maxpn python:int(tocsize/grpsize);"> 4 <div class="thumbruler"> 5 <span tal:condition="python:(pn>1)"> 6 <a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)"><</a> 7 </span> 8 <span tal:content="string:$pn of $tocsize"/> 9 <span> 10 <a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">></a> 11 </span> 12 </div> 13 <div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/> 14 </tal:block>
Note: See TracChangeset
for help on using the changeset viewer.