comparison zpt/toc_thumbs.zpt @ 528:f8a5f63eafc0

new viewMode=thumbs.
author casties
date Fri, 13 Apr 2012 16:55:16 +0200
parents 3f375a048402
children 0b8bed1223ad
comparison
equal deleted inserted replaced
527:652cc8d3f1a9 528:f8a5f63eafc0
16 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);"> 16 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
17 <div metal:use-macro="here/template/common_template/macros/toc_switcher"/> 17 <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
18 18
19 <div class="content"> 19 <div class="content">
20 <div class="ruler"> 20 <div class="ruler">
21 <form class="autosubmit" tal:attributes="action viewerUrl"> 21 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs"/>
22 <input type="hidden" tal:define="params python:here.getParams('start',None)"
23 tal:repeat="param params"
24 tal:attributes="name param; value python:params[param]" />
25 <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)">&lt;</a>
26 <span tal:condition="not:left">&lt;</span>
27 <select class="autosubmit" name="start"
28 tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
29 <tal:block >
30 <option tal:repeat="grp pageBatch/batches"
31 tal:attributes="selected python:start==grp['start']; value grp/start;"
32 tal:content="string:${grp/start} - ${grp/end}" />
33 </tal:block>
34 </select>
35 <input type="submit" value="Go" />
36 <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
37 <span tal:condition="not:right">&gt;</span>
38 </form>
39 </div> 22 </div>
40 23
41 <table class="thumbs"> 24 <table class="thumbs">
42 <tr tal:repeat="row pageBatch/pages"> 25 <tr tal:repeat="row pageBatch/pages">
43 <td tal:repeat="thumb row" 26 <td tal:repeat="thumb row"