- <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
- <script type="text/javascript" tal:condition="not:dropable">
- new Lightbox(document.getElementById('lightbox'));
+ <noscript>
+ <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
+ </noscript>
+ <script type="text/javascript" tal:condition="not:dropable"
+ tal:content="structure python:'''
+ new Lightbox(document.getElementById('lightbox'),
+ document.getElementById('lightbox_toolbar'),
+ %s);
+ ''' % ('true' if not batch.next else 'false')">