Mercurial > hg > documentViewer
view zpt/image_main.zpt @ 80:8ec7b049a49c
fixed a problem with image_main when options/mk is not present
author | casties |
---|---|
date | Wed, 21 Oct 2009 18:41:50 +0200 |
parents | 47d76f050883 |
children |
line wrap: on
line source
<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; mode python:options.get('viewMode','images'); mk python:options.get('mk','')"> <iframe tal:condition="python:mode=='images'" height="100%" width="100%" tal:attributes="src string:${here/imageViewerUrl}fn=${docinfo/imagePath}&pn=${pageinfo/current}&$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>