Changeset 607:cb5a9c4f5e3a in documentViewer for zpt/viewer/toc_thumbs.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/toc_thumbs.zpt

    r594 r607  
    1111    <div class="tocbody thumbs"
    1212      tal:define="start pageinfo/start;
     13                minPageNo docinfo/minPageNo;
     14                maxPageNo docinfo/maxPageNo;
    1315                grpsize pageinfo/groupsize;
    1416                numgroups pageinfo/numgroups;
     
    2628          <tr tal:repeat="row pageBatch/pages">
    2729            <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
    28               tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
     30              tal:define="idx thumb/idx" tal:condition="idx"
     31              tal:attributes="href python:here.getLink('pn',idx); class python:test(idx<minPageNo or idx>maxPageNo, 'outside')"><img
     32                tal:condition="python:docinfo.get('imageURL',None) or exists('template/text.png')"
    2933                tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png');
    3034                                alt idx;" /><br />
Note: See TracChangeset for help on using the changeset viewer.