Changeset 607:cb5a9c4f5e3a in documentViewer for zpt/viewer/common_template.zpt


Ignore:
Timestamp:
Dec 14, 2012, 10:28:31 PM (11 years ago)
Author:
casties
Branch:
default
Message:

CLOSED - # 268: display of subdocuments
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/268

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/common_template.zpt

    r594 r607  
    4545  <!-- page ruler with previous/next page buttons -->
    4646  <metal:block metal:define-macro="page_ruler"
    47     tal:define="
    48               prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None);
    49               first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None);
     47    tal:define="minPageNo docinfo/minPageNo; maxPageNo docinfo/maxPageNo;
     48              prev python:test(pn>minPageNo,pn-1,None); next python:test(pn<maxPageNo,pn+1,None);
     49              first python:test(pn>minPageNo,minPageNo,None); last python:test(pn<maxPageNo,maxPageNo,None);
    5050              left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
    5151              leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);">
     
    9090    <form class="autosubmit" tal:attributes="action viewerUrl">
    9191      <input type="hidden" tal:define="params python:here.getParams('start',None)" tal:repeat="param params"
    92         tal:attributes="name param; value python:params[param]" /><span class="ruler-main"><a tal:condition="left"
    93         tal:attributes="href python:here.getLink('start',left)">&lt;</a> <span tal:condition="not:left">&lt;</span> <select
     92        tal:attributes="name param; value python:params[param]" /><span class="ruler-main"><a tal:omit-tag="not:left"
     93        tal:attributes="href python:here.getLink('start',left)">&lt;</a> <select
    9494        class="autosubmit" name="start" tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
    9595          <tal:block>
     
    9898            <option tal:condition="python:start>pageBatch['last']" selected="selected" value="1">[out of range]</option>
    9999          </tal:block>
    100       </select> <input type="submit" value="Go" /> <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
    101         <span tal:condition="not:right">&gt;</span></span>
     100      </select> <input type="submit" value="Go" /> <a tal:omit-tag="not:right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
     101      </span>
    102102    </form>
    103103  </metal:block>
Note: See TracChangeset for help on using the changeset viewer.