Annotation of documentViewer/zpt/thumbs_main.zpt, revision 1.1

1.1     ! casties     1: <div tal:define="cols python:2; rows python:10; docinfo python:options['docinfo']; pageinfo python:options['pageinfo']; start python:pageinfo['start']; end python:min(start+cols*rows,int(docinfo['numberOfPages'])); current pageinfo/current; rowsCorrected python:divmod(end-start,cols);">
        !             2: <span tal:replace="structure python:here.thumbruler(cols,rows,start,int(docinfo['numberOfPages']))"/>
        !             3: 
        !             4: <table>
        !             5:    <tr tal:repeat="i python:range(rowsCorrected[0])">
        !             6:        <td align="center" tal:repeat="j python:range(start+i*cols,start+(i+1)*cols)" 
        !             7:            tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')">
        !             8:        <a tal:attributes="href python:here.imageLink(j+1)">
        !             9:         <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/>
        !            10:         <div class="thumbcap" tal:content="python:(j+1)"/>
        !            11:        </a>
        !            12:        </td>
        !            13:    </tr>
        !            14:    <tr tal:condition="python:rowsCorrected[1]>0">
        !            15:        <td align="center" tal:repeat="j python:range(start+cols*rowsCorrected[0],int(docinfo['numberOfPages']))" 
        !            16:            tal:attributes="class python:here.getStyle(str(j+1),current,'thumb')">
        !            17:        <a tal:attributes="href python:here.imageLink(j+1)">
        !            18:         <img class="thumbimg" border="0" tal:attributes="src python:docinfo['imageURL']+'&pn=%i&dw=100&dh=100'%(j+1)"/>
        !            19:         <div class="thumbcap" tal:content="python:(j+1)"/>
        !            20:         </a>
        !            21:        </td>
        !            22:    </tr>
        !            23: </table>
        !            24: </div>

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