Changeset 91:b8c491e52ebc in documentViewer for zpt
- Timestamp:
- Apr 8, 2010, 11:04:51 AM (15 years ago)
- Branch:
- default
- Location:
- zpt
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_main.zpt
r89 r91 2 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode">4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; tocMode pageinfo/tocMode"> 5 5 <head> 6 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> … … 13 13 <tr> 14 14 <td width="300px" valign="top"> 15 <tal:block tal:replace="structure python: here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)"/>15 <tal:block tal:replace="structure python:getattr(here.template, 'toc_%s'%tocMode)(docinfo=docinfo,pageinfo=pageinfo)"/> 16 16 </td> 17 17 <td width="100%" valign="top"> 18 <tal:block tal:condition="python:viewMode=='images'" tal:content="structure python:here.template.page_main_images(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" /> 19 <tal:block tal:condition="python:viewMode.startswith('text')" tal:content="structure python:here.template.page_main_text(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" /> 18 <tal:block tal:content="structure python:getattr(here.template, 'page_main_%s'%viewMode)(docinfo=docinfo,pageinfo=pageinfo,mk=options['mk'])"/> 20 19 </td> 21 20 </tr>
Note: See TracChangeset
for help on using the changeset viewer.