Diff for /documentViewer/zpt/toc_figures.zpt between versions 1.3.2.1 and 1.3.2.4

version 1.3.2.1, 2011/08/16 10:01:59 version 1.3.2.4, 2011/08/25 15:05:22
Line 6 Line 6
 </head>  </head>
 <body>  <body>
   <!-- block used for main content area -->    <!-- block used for main content area -->
   <div class="col_left" metal:define-macro="main"    <div class="toc-figures" metal:define-macro="main"
     tal:define="pn pageinfo/tocPN; tocsize docinfo/tocSize_figures; grpsize pageinfo/tocPageSize;      tal:define="start pageinfo/start; tocsize docinfo/tocSize_figures; grpsize pageinfo/tocPageSize;
                 maxpn python:int(math.ceil(tocsize/float(grpsize)));">                  batch python:here.getBatch(start=start,size=grpsize,end=tocsize);">
     <ul class="switcher">      <ul class="switcher">
       <li><a        <li><a
         tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>          tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a>
Line 17 Line 17
         tal:condition="python:docpath and docinfo.get('numTocEntries', None)">          tal:condition="python:docpath and docinfo.get('numTocEntries', None)">
         <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>          <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a>
       </li>        </li>
       <li        <li class="sel"
         tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">          tal:condition="python:docpath and docinfo.get('numFigureEntries', None)">
         <a          <a
         tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>          tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a>
Line 29 Line 29
     <div class="ruler">      <div class="ruler">
       <form class="autosubmit" tal:attributes="action viewerUrl">        <form class="autosubmit" tal:attributes="action viewerUrl">
         <input type="hidden"          <input type="hidden"
           tal:define="params python:here.getParams('tocPN', None)"            tal:define="params python:here.getParams('start', None)"
           tal:repeat="param params"            tal:repeat="param params"
           tal:attributes="name param; value python:params[param]" />             tal:attributes="name param; value python:params[param]" /> 
         <a tal:condition="python:(pn>1)"          <a tal:condition="batch/prevStart"
           tal:attributes="href python:here.getLink('tocPN',pn-1)">&lt;</a>            tal:attributes="href python:here.getLink('start',batch['prevStart'])">&lt;</a>
         <span tal:condition="python:(pn<=1)">&lt;</span>           <span tal:condition="not:batch/prevStart">&lt;</span> 
         <select class="autosubmit" name="tocPN">          <select class="autosubmit" name="start">
           <option tal:repeat="idx python:range(maxpn)"            <option tal:repeat="grp batch/batches"
             tal:attributes="selected python:(pn==idx*grpsize+1); value python:(idx*grpsize+1)"              tal:attributes="selected python:(start==grp['start']); value grp/start"
             tal:content="python:str(idx*grpsize+1)" />              tal:content="string:${grp/start} - ${grp/end}" />
         </select>           </select> 
         <input type="submit" value="Go" />           <input type="submit" value="Go" /> 
         <a tal:condition="python:(pn<maxpn)"          <a tal:condition="batch/nextStart"
           tal:attributes="href python:here.getLink('tocPN',pn+1)">&gt;</a>            tal:attributes="href python:here.getLink('start',batch['nextStart'])">&gt;</a>
         <span tal:condition="python:(pn>=maxpn)">&gt;</span>           <span tal:condition="not:batch/nextStart">&gt;</span> 
       </form>        </form>
     </div>      </div>
     <div class="content"      <div class="content"
       tal:content="structure python:here.getTocPage(mode='figures',pageinfo=pageinfo,docinfo=docinfo)" />        tal:content="structure python:here.getTocPage(mode='figures',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
   </div>    </div>
   <!-- toc -->    <!-- toc -->
 </body>  </body>

Removed from v.1.3.2.1  
changed lines
  Added in v.1.3.2.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>