Mercurial > hg > documentViewer
view zpt/image_main.zpt @ 78:70ab234a18dc
bugs in filepath mode fixes
author | dwinter |
---|---|
date | Fri, 06 Mar 2009 16:36:38 +0100 |
parents | 47d76f050883 |
children | 8ec7b049a49c |
line wrap: on
line source
<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; mode python:options.get('viewMode','images')"> <iframe tal:condition="python:mode=='images'" height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}&${options/mk}"/> <iframe tal:condition="python:mode=='text'" height="100%" width="100%" tal:attributes="src string:${here/textViewerUrl}fn=${docinfo/textURL}&pn=${pageinfo/current}&lang=${docinfo/lang}"/> </tal:block>