- <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'),
+ %(complete)s,
+ '%(container_type)s');
+ ''' % {'complete' : 'true' if not batch.next else 'false',
+ 'container_type' : options.get('container_type', 'portfolio')}">