From 966d6540c7418fad5c0a201b5d57af11a4e041fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?=
Date: Wed, 7 Apr 2010 15:53:04 +0200
Subject: Some more toc
---
templates/page.mako | 10 ++++++++--
templates/pages/translating.mako | 2 +-
2 files changed, 9 insertions(+), 3 deletions(-)
(limited to 'templates')
diff --git a/templates/page.mako b/templates/page.mako
index cc3f480..9e1f20f 100644
--- a/templates/page.mako
+++ b/templates/page.mako
@@ -17,14 +17,16 @@ ${next.body()}
<%def name="style()">
${parent.style()}
-
+ % if self.attr.uses_toc:
+
+ % endif
%def>
<%def name="h2()">
<%
if self.attr.uses_toc:
c = capture(caller.body)
- name = c.replace(" ", "_").lower()
+ name = c.replace(" ", "_").replace("/", "_").lower()
tlist = getattr(self.attr, "tlist", [])
tlist.append((str(name), str(c)))
@@ -34,3 +36,7 @@ ${next.body()}
%>
ยป ${caller.body()}
%def>
+
+<%def name="toc()">
+
+%def>
diff --git a/templates/pages/translating.mako b/templates/pages/translating.mako
index 5461199..a6014d2 100644
--- a/templates/pages/translating.mako
+++ b/templates/pages/translating.mako
@@ -8,7 +8,7 @@
Portato supports native languages. Nevertheless the translations into these languages have to be created. This page shows how to add a new translation or how to extend an existing translation.
-
+${self.toc()}
<%self:h2>Short introduction about NLS in Linux%self:h2>
--
cgit v1.2.3