diff options
Diffstat (limited to '')
-rw-r--r-- | templates/page.mako | 14 | ||||
-rw-r--r-- | 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 @@ <h1 class="title">${self.attr.title}</h1> ${next.body()} -% if self.attr.uses_menu: +% if self.attr.uses_toc: <script type="text/javascript"> - createToc(${h.toJS(self.attr.mlist)}) + createToc(${h.toJS(self.attr.tlist)}) </script> % 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" /> |