Mercurial > hg > documentViewer
comparison zpt/viewer_text.zpt @ 543:6cdc31e9ed8e
fixed problem with dict-mode in default view.
added configurable footer and logo in site_template.pt
author | casties |
---|---|
date | Wed, 22 Aug 2012 16:25:38 +0200 |
parents | 4b43a57ad9b3 |
children | fc34eff7b52d |
comparison
equal
deleted
inserted
replaced
542:dbaa7dce60a5 | 543:6cdc31e9ed8e |
---|---|
12 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> | 12 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> |
13 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> | 13 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> |
14 <!--[if IE]><link rel="stylesheet" href="template/docuviewer_ie_css" type="text/css" /><![endif]--> | 14 <!--[if IE]><link rel="stylesheet" href="template/docuviewer_ie_css" type="text/css" /><![endif]--> |
15 <script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script> | 15 <script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script> |
16 <script type="text/javascript"> | 16 <script type="text/javascript"> |
17 // <!-- | 17 // <!-- |
18 $(document).ready(function() { | 18 $(document).ready(function() { |
19 // autosubmit forms | 19 // autosubmit forms |
20 $('form.autosubmit').find('.autosubmit').change(function() { | 20 $('form.autosubmit').find('.autosubmit').change(function() { |
21 this.form.submit(); | 21 this.form.submit(); |
22 }); | 22 }); |
35 <body tal:condition="numPages"> | 35 <body tal:condition="numPages"> |
36 <tal:block | 36 <tal:block |
37 tal:define="docpath docinfo/textURLPath | nothing; | 37 tal:define="docpath docinfo/textURLPath | nothing; |
38 pn pageinfo/pn; | 38 pn pageinfo/pn; |
39 flowLtr python:docinfo.get('pageFlow','ltr')!='rtl'; | 39 flowLtr python:docinfo.get('pageFlow','ltr')!='rtl'; |
40 textPage python:here.getTextPage(mode=viewLayer, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';"> | 40 textPage python:here.getTextPage(mode=viewLayer, pn=pn, docinfo=docinfo, pageinfo=pageinfo);"> |
41 <!-- header --> | 41 <!-- header --> |
42 <div class="page-head"> | 42 <div class="page-head"> |
43 <metal:block metal:use-macro="here/template/common_template/macros/head" /> | 43 <metal:block metal:use-macro="here/template/common_template/macros/head" /> |
44 </div> | 44 </div> |
45 | 45 |
52 <!-- text page --> | 52 <!-- text page --> |
53 <div class="col main"> | 53 <div class="col main"> |
54 <div class="ruler top"> | 54 <div class="ruler top"> |
55 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> | 55 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> |
56 </div> | 56 </div> |
57 <div class="content text"> | 57 <div class="content text" tal:condition="textPage"> |
58 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" | 58 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" |
59 tal:content="structure pageinfo/pageHeaderTitle" /> | 59 tal:content="structure pageinfo/pageHeaderTitle" /> |
60 <tal:block tal:replace="structure textPage" /> | 60 <tal:block tal:condition="textPage" tal:replace="structure textPage"/> |
61 <div class="emptyPage" tal:condition="not:textPage">[Empty page]</div> | |
61 </div> | 62 </div> |
62 </div> | 63 </div> |
63 <!-- end of col-main --> | 64 <!-- end of col-main --> |
64 | 65 |
65 <!-- layer columns (rendered always) --> | 66 <!-- layer columns (rendered always) --> |
137 <!-- /page-body --> | 138 <!-- /page-body --> |
138 | 139 |
139 <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)"> | 140 <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)"> |
140 <div class="errortext">Sorry, access to this document is restricted.</div> | 141 <div class="errortext">Sorry, access to this document is restricted.</div> |
141 </div> | 142 </div> |
142 | 143 |
144 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> | |
145 <!-- footer --> | |
146 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> | |
147 </tal:block> | |
143 </tal:block> | 148 </tal:block> |
144 </body> | 149 </body> |
145 <body tal:condition="not:numPages"> | 150 <body tal:condition="not:numPages"> |
146 <div class="errortext">Sorry, document doesn't exist.</div> | 151 <div class="errortext">Sorry, document doesn't exist.</div> |
152 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> | |
153 <!-- footer --> | |
154 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> | |
155 </tal:block> | |
147 </body> | 156 </body> |
148 </html> | 157 </html> |