From 83e76d0c20ab6ee6cb79d020da43a9ec04fa154b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Wed, 7 Apr 2010 14:01:59 +0200 Subject: Renamed 'menu' to the correct 'toc' --- templates/page.mako | 14 +++++++------- templates/pages/translating.mako | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/page.mako b/templates/page.mako index 49671ff..cc3f480 100644 --- a/templates/page.mako +++ b/templates/page.mako @@ -1,6 +1,6 @@ <%! title = "" - uses_menu = False + uses_toc = False %> <%inherit file="/root.mako" /> @@ -8,9 +8,9 @@

${self.attr.title}

${next.body()} -% if self.attr.uses_menu: +% if self.attr.uses_toc: % endif @@ -22,13 +22,13 @@ ${next.body()} <%def name="h2()"> <% - if self.attr.uses_menu: + if self.attr.uses_toc: c = capture(caller.body) name = c.replace(" ", "_").lower() - mlist = getattr(self.attr, "mlist", []) - mlist.append((str(name), str(c))) + tlist = getattr(self.attr, "tlist", []) + tlist.append((str(name), str(c))) - self.attr.mlist = mlist + self.attr.tlist = tlist else: name = "#" %> diff --git a/templates/pages/translating.mako b/templates/pages/translating.mako index 2135480..5461199 100644 --- a/templates/pages/translating.mako +++ b/templates/pages/translating.mako @@ -1,6 +1,6 @@ <%! title = "Translation Guide" - uses_menu = True + uses_toc = True %> <%inherit file="/page.mako" /> -- cgit v1.2.3