Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

reverted the navbar template tag temporarilly

  • Loading branch information...
commit 30ed9b4520baeb009fd0aa17f90587788267e91b 1 parent 3e1be78
Andre Engelbrecht authored
Showing with 11 additions and 6 deletions.
  1. +11 −6 ostinato/pages/templatetags/pages_tags.py
View
17 ostinato/pages/templatetags/pages_tags.py
@@ -20,16 +20,21 @@ def navbar(context, for_page=None, path=''):
be found in the path of course.
"""
- if not for_page:
- if 'page' in context:
- for_page = context['page']
- else:
- for_page = Page.objects.get_from_path(path)
+ if 'page' not in context:
+ for_page = Page.objects.get_from_path(path)
+ else:
+ page = context['page']
+
+ # if not for_page:
+ # if 'page' in context:
+ # for_page = context['page']
+ # else:
+ # for_page = Page.objects.get_from_path(path)
navbar = Page.objects.get_navbar(for_page=for_page)
return {
- 'page': for_page,
+ 'page': page,
'navbar': navbar,
}
Please sign in to comment.
Something went wrong with that request. Please try again.