- <script type="text/javascript" tal:condition="not:dropable">
- new Lightbox(document.getElementById('lightbox'),
- document.getElementById('lightbox_toolbar'));
+ <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')">