annotate zpt/viewer_text.zpt @ 479:fe5b0e4ac5f2 elementtree

starting new templates in product
author casties
date Mon, 15 Aug 2011 11:58:56 +0200
parents
children 50a28442f21c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
479
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; tocMode pageinfo/tocMode">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
5 <head>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
7 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
8 </head>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
9 <body tal:condition="docinfo/numPages">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
10 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo,viewMode=viewMode,pageinfo=pageinfo)"/>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
11 <tal:block tal:condition="python:here.isAccessible(docinfo)">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
12 <table border="0" width="100%" height="100%">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
13 <tr>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
14 <td width="300px" valign="top">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
15 <tal:block tal:replace="structure python:getattr(here.template, 'toc_%s'%tocMode)(docinfo=docinfo,pageinfo=pageinfo)"/>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
16 </td>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
17 <td width="100%" valign="top">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
18 <tal:block tal:content="structure python:getattr(here.template, 'page_main_%s'%viewMode)(docinfo=docinfo,pageinfo=pageinfo,mk=options['mk'])"/>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
19 </td>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
20 </tr>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
21 </table>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
22 </tal:block>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
23 <tal:block tal:condition="not:python:here.isAccessible(docinfo)">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
24 <div class="errortext">Sorry, access to this document is restricted.</div>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
25 </tal:block>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
26 </body>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
27 <body tal:condition="not:docinfo/numPages">
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
28 <div class="errortext">Sorry, document doesn't exist.</div>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
29 </body>
fe5b0e4ac5f2 starting new templates in product
casties
parents:
diff changeset
30 </html>