Mercurial > hg > documentViewer
view zpt/toc_figures.zpt @ 481:0a0f7f570f90 elementtree
more new templates
author | casties |
---|---|
date | Tue, 16 Aug 2011 12:02:00 +0200 |
parents | 027134cca83e |
children | 7ca8ac7db06e |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <!-- block used for main content area --> <div class="col_left" metal:define-macro="main" tal:define="pn pageinfo/tocPN; tocsize docinfo/tocSize_figures; grpsize pageinfo/tocPageSize; maxpn python:int(math.ceil(tocsize/float(grpsize)));"> <ul class="switcher"> <li><a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> </li> <li tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> </li> <li tal:condition="python:docpath and docinfo.get('numFigureEntries', None)"> <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a> </li> <li><a tal:attributes="href python:here.getLink('tocMode','none')">None</a> </li> </ul> <div class="ruler"> <form class="autosubmit" tal:attributes="action viewerUrl"> <input type="hidden" tal:define="params python:here.getParams('tocPN', None)" tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> <a tal:condition="python:(pn>1)" tal:attributes="href python:here.getLink('tocPN',pn-1)"><</a> <span tal:condition="python:(pn<=1)"><</span> <select class="autosubmit" name="tocPN"> <option tal:repeat="idx python:range(maxpn)" tal:attributes="selected python:(pn==idx*grpsize+1); value python:(idx*grpsize+1)" tal:content="python:str(idx*grpsize+1)" /> </select> <input type="submit" value="Go" /> <a tal:condition="python:(pn<maxpn)" tal:attributes="href python:here.getLink('tocPN',pn+1)">></a> <span tal:condition="python:(pn>=maxpn)">></span> </form> </div> <div class="content" tal:content="structure python:here.getTocPage(mode='figures',pageinfo=pageinfo,docinfo=docinfo)" /> </div> <!-- toc --> </body> </html>