diff zpt/viewer_main.zpt @ 31:c6451e8d5d23

more small fixes - now version 0.2.2
author casties
date Mon, 10 Apr 2006 21:51:50 +0200
parents 3ce65220672c
children 0ca99253b4ce
line wrap: on
line diff
--- a/zpt/viewer_main.zpt	Mon Apr 10 13:23:18 2006 +0200
+++ b/zpt/viewer_main.zpt	Mon Apr 10 21:51:50 2006 +0200
@@ -2,7 +2,7 @@
 <head>
 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
 </head>
-<body tal:define="docinfo options/docinfo; pageinfo options/pageinfo">
+<body tal:define="docinfo options/docinfo; pageinfo options/pageinfo" tal:condition="docinfo/numPages">
 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/>
 <table border="0" width="100%" height="100%">
   <tr>
@@ -15,4 +15,7 @@
   </tr>
 </table>
 </body>
+<body tal:define="docinfo options/docinfo; pageinfo options/pageinfo" tal:condition="not:docinfo/numPages">
+<div class="errortext">Sorry, document doesn't exist.</div>
+</body>
 </html>