Changeset 571:f1906951be2a in documentViewer
- Timestamp:
- Oct 12, 2012, 3:02:40 PM (13 years ago)
- Branch:
- default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r568 r571 980 980 981 981 batch['pages'] = pages 982 batch['first'] = minIdx 983 batch['last'] = maxIdx 982 984 return batch 983 985 … … 1024 1026 batch['nextStart'] = None 1025 1027 1026 logging.debug("getBatch start=%s size=%s end=%s batch=%s"%(start,size,end,repr(batch))) 1028 batch['first'] = start 1029 batch['last'] = end 1027 1030 return batch 1028 1031 -
zpt/common_template.zpt
r543 r571 78 78 tal:attributes="href python:here.getLink(startParam,batch['prevStart'])"><</a> <span tal:condition="not:batch/prevStart"><</span> 79 79 <select class="autosubmit" tal:attributes="name startParam"> 80 <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start ==grp['start']); value grp/start"80 <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start>=grp['start'] and start<=grp['end']); value grp/start" 81 81 tal:content="string:${grp/start} - ${grp/end}" /> 82 <option tal:condition="python:start>batch['last']" selected="selected" value="1">[out of range]</option> 82 83 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" 83 84 tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">></a> <span tal:condition="not:batch/nextStart">></span> … … 93 94 class="autosubmit" name="start" tal:define="ofs python:test(pageinfo['pageZero'],0,1)"> 94 95 <tal:block> 95 <option tal:repeat="grp pageBatch/batches" tal:attributes="selected python: start==grp['start']; value grp/start;"96 <option tal:repeat="grp pageBatch/batches" tal:attributes="selected python:(start>=grp['start'] and start<=grp['end']); value grp/start;" 96 97 tal:content="string:${grp/start} - ${grp/end}" /> 98 <option tal:condition="python:start>pageBatch['last']" selected="selected" value="1">[out of range]</option> 97 99 </tal:block> 98 100 </select> <input type="submit" value="Go" /> <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">></a> -
zpt/viewer_text.zpt
r570 r571 59 59 tal:content="structure pageinfo/pageHeaderTitle" /> 60 60 <tal:block tal:condition="textPage" tal:replace="structure textPage"/> 61 <div class="emptyPage" tal:condition="not:textPage">[Error: no page]</div>61 <div class="emptyPage" tal:condition="not:textPage">[Error: no text]</div> 62 62 </div> 63 63 </div>
Note: See TracChangeset
for help on using the changeset viewer.