Changeset 89:3d95ba1bf535 in documentViewer for zpt
- Timestamp:
- Mar 19, 2010, 11:42:40 AM (15 years ago)
- Branch:
- default
- Location:
- zpt
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_main.zpt
r76 r89 1 <html tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode"> 2 5 <head> 3 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 <link rel="stylesheet" href="template/docuviewer_css" type="text/css"> 5 8 </head> 6 9 <body tal:condition="docinfo/numPages"> … … 10 13 <tr> 11 14 <td width="300px" valign="top"> 12 <tal:blockreplace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" />15 <tal:block tal:replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> 13 16 </td> 14 17 <td width="100%" valign="top"> 15 <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" /> 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'])" /> 16 20 </td> 17 21 </tr>
Note: See TracChangeset
for help on using the changeset viewer.