diff zpt/toc_text.zpt @ 122:027134cca83e

reverting back to non-metal version for now
author casties
date Tue, 25 May 2010 16:36:24 +0200
parents 9d08a21fdd83
children 0a0f7f570f90
line wrap: on
line diff
--- a/zpt/toc_text.zpt	Tue May 25 12:03:55 2010 +0200
+++ b/zpt/toc_text.zpt	Tue May 25 16:36:24 2010 +0200
@@ -1,25 +1,14 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-</head>
-<body>
-  <!-- block used for main content area -->
-  <metal:block metal:define-macro="main">
-    <tal:block tal:define="pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']);
-      maxpn python:int(tocsize/grpsize);">
-      <div class="thumbruler">
-        <span tal:condition="python:(pn>1)">
-          <a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)">&lt;</a>
-        </span>
-        <span tal:content="string:$pn of $maxpn"/>
-        <span>
-          <a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">&gt;</a>
-        </span>
-      </div>
-      <div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/>
-    </tal:block>
-  </metal:block>
-</body>
-</html>
\ No newline at end of file
+<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo;  
+  pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_text']); grpsize python:int(pageinfo['tocPageSize']);
+  maxpn python:int(tocsize/grpsize);">
+  <div class="thumbruler">
+    <span tal:condition="python:(pn>1)">
+      <a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)">&lt;</a>
+    </span>
+    <span tal:content="string:$pn of $tocsize"/>
+    <span>
+    <a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">&gt;</a>
+  </span>
+</div>
+  <div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/>
+</tal:block>