summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 14:01:59 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 14:01:59 +0200
commit83e76d0c20ab6ee6cb79d020da43a9ec04fa154b (patch)
tree97c6f10d2ff5729ae66c4ab7486bd067b32c6233
parent62dca23c65d9e177e61d0850e8df5d33b220c23a (diff)
downloadweb-83e76d0c20ab6ee6cb79d020da43a9ec04fa154b.tar.gz
web-83e76d0c20ab6ee6cb79d020da43a9ec04fa154b.tar.bz2
web-83e76d0c20ab6ee6cb79d020da43a9ec04fa154b.zip
Renamed 'menu' to the correct 'toc'
-rw-r--r--templates/page.mako14
-rw-r--r--templates/pages/translating.mako2
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" />