Changeset 543:6cdc31e9ed8e in documentViewer for zpt/viewer_text.zpt
- Timestamp:
- Aug 22, 2012, 2:25:38 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_text.zpt
r540 r543 15 15 <script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script> 16 16 <script type="text/javascript"> 17 17 // <!-- 18 18 $(document).ready(function() { 19 19 // autosubmit forms … … 38 38 pn pageinfo/pn; 39 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 41 <!-- header --> 42 42 <div class="page-head"> … … 55 55 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> 56 56 </div> 57 <div class="content text" >57 <div class="content text" tal:condition="textPage"> 58 58 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" 59 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 62 </div> 62 63 </div> … … 140 141 <div class="errortext">Sorry, access to this document is restricted.</div> 141 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 148 </tal:block> 144 149 </body> 145 150 <body tal:condition="not:numPages"> 146 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 156 </body> 148 157 </html>
Note: See TracChangeset
for help on using the changeset viewer.