X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0d560fdc9e0351ebe039dcc9d9d14b6b560ba00c..7838f389cf5ebed7c23b764581cd563d1865828c:/contrib/shipherd/templatetags/shipherd.py diff --git a/contrib/shipherd/templatetags/shipherd.py b/contrib/shipherd/templatetags/shipherd.py index fec700b..8adef3e 100644 --- a/contrib/shipherd/templatetags/shipherd.py +++ b/contrib/shipherd/templatetags/shipherd.py @@ -17,9 +17,9 @@ class RecurseNavigationNode(RecurseTreeNode): bits = [] context.push() for child in node.get_children(): - context['node'] = child + context['navigation'] = child bits.append(self._render_node(context, child, request)) - context['node'] = node + context['navigation'] = node context['children'] = mark_safe(u''.join(bits)) context['active'] = node.is_active(request) rendered = self.template_nodes.render(context) @@ -41,17 +41,17 @@ class RecurseNavigationNode(RecurseTreeNode): @register.tag def recursenavigation(parser, token): """ - Based on django-mptt's recursetree templatetag. In addition to {{ node }} and {{ children }}, + Based on django-mptt's recursetree templatetag. In addition to {{ navigation }} and {{ children }}, sets {{ active }} in the context. - Note that the tag takes one variable, navigation, which is a Navigation instance. + Note that the tag takes one variable, which is a Node instance. Usage: