annotate zpt/viewer_main.zpt @ 121:cb0978becec4 Root_metalify-1

*** empty log message ***
author abukhman
date Tue, 25 May 2010 12:03:55 +0200
parents 9d08a21fdd83
children 027134cca83e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
3d95ba1bf535 first version with new full-text infrastructure and slightly changed templates
casties
parents: 76
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3d95ba1bf535 first version with new full-text infrastructure and slightly changed templates
casties
parents: 76
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3d95ba1bf535 first version with new full-text infrastructure and slightly changed templates
casties
parents: 76
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
94
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; tocMode pageinfo/tocMode;
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
5 body_onload nothing">
24
2204e028811b preliminary version 0.2
casties
parents:
diff changeset
6 <head>
89
3d95ba1bf535 first version with new full-text infrastructure and slightly changed templates
casties
parents: 76
diff changeset
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3d95ba1bf535 first version with new full-text infrastructure and slightly changed templates
casties
parents: 76
diff changeset
8 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
94
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
9 <metal:block metal:use-macro="python:path('here/template/page_main_%s/macros/head'%viewMode)"/>
24
2204e028811b preliminary version 0.2
casties
parents:
diff changeset
10 </head>
94
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
11 <body tal:condition="docinfo/numPages" tal:attributes="onload body_onload">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
12 <metal:block metal:use-macro="here/template/head_main/macros/main"/>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
13 <tal:block tal:condition="python:here.isAccessible(docinfo)">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
14 <table border="0" width="100%" height="100%">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
15 <tr>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
16 <td width="300px" valign="top">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
17 <metal:block metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)"/>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
18 </td>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
19 <td width="100%" valign="top">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
20 <metal:block metal:use-macro="python:path('here/template/page_main_%s/macros/main'%viewMode)"/>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
21 </td>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
22 </tr>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
23 </table>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
24 </tal:block>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
25 <tal:block tal:condition="not:python:here.isAccessible(docinfo)">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
26 <div class="errortext">Sorry, access to this document is restricted.</div>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
27 </tal:block>
24
2204e028811b preliminary version 0.2
casties
parents:
diff changeset
28 </body>
34
0ca99253b4ce version 0.2.3 - first version with access control!
casties
parents: 31
diff changeset
29 <body tal:condition="not:docinfo/numPages">
31
c6451e8d5d23 more small fixes - now version 0.2.2
casties
parents: 27
diff changeset
30 <div class="errortext">Sorry, document doesn't exist.</div>
c6451e8d5d23 more small fixes - now version 0.2.2
casties
parents: 27
diff changeset
31 </body>
24
2204e028811b preliminary version 0.2
casties
parents:
diff changeset
32 </html>