comparison zpt/image_main.zpt @ 46:31059e3d9338

has now also a text mode viewMode=text
author dwinter
date Sat, 09 Sep 2006 12:52:59 +0200
parents c43d3cd16238
children 6c0f20cecc60
comparison
equal deleted inserted replaced
45:0391fe75aef3 46:31059e3d9338
1 <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo"> 1 <tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; mode python:options.get('viewMode','images')">
2 <iframe height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}"/> 2 <iframe tal:condition="python:mode=='images'" height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}"/>
3 <iframe tal:condition="python:mode=='text'" height="100%" width="100%" tal:attributes="src string:${here/textViewerUrl}fn=${docinfo/textURL}&_pn=${pageinfo/current}"/>
3 </tal:block> 4 </tal:block>