Changeset 482:7ca8ac7db06e in documentViewer for zpt/toc_thumbs.zpt


Ignore:
Timestamp:
Aug 16, 2011, 4:27:08 PM (13 years ago)
Author:
casties
Branch:
elementtree
Message:

more new template stuff. more batching methods in documentViewer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/toc_thumbs.zpt

    r481 r482  
    3939          <select class="autosubmit" name="start"
    4040            tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
    41             <tal:block tal:repeat="grp python:range(numgroups)">
    42               <option tal:define="idx python:max(grp*grpsize+ofs,1)"
    43                 tal:attributes="selected python:start==idx; value idx;"
    44                 tal:content="python:'%s - %s'%(idx,min((grp+1)*grpsize+ofs-1,numPages))" />
     41            <tal:block >
     42              <option tal:repeat="grp pageBatch/batches"
     43                tal:attributes="selected python:start==grp['start']; value grp/start;"
     44                tal:content="string:${grp/start} - ${grp/end}" />
    4545            </tal:block>
    4646          </select>
Note: See TracChangeset for help on using the changeset viewer.