From 87f14b8015faf951a9d226784b370cc67f912653 Mon Sep 17 00:00:00 2001 From: Luke Hatcher Date: Tue, 22 May 2012 02:11:40 -0400 Subject: [PATCH] adding in basic nav --- symposion_project/requirements/base.txt | 1 + symposion_project/settings.py | 1 + symposion_project/templates/site_base.html | 4 ++-- symposion_project/templates/sitetree/menu.html | 11 +++++++++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 symposion_project/templates/sitetree/menu.html diff --git a/symposion_project/requirements/base.txt b/symposion_project/requirements/base.txt index 23c857bf..ca321225 100644 --- a/symposion_project/requirements/base.txt +++ b/symposion_project/requirements/base.txt @@ -27,6 +27,7 @@ django-taggit==0.9.3 django-reversion==1.5.1 django-markitup==1.0.0 markdown==2.1.1 +django-sitetree==0.6 pinax-theme-bootstrap==2.0.3 django-forms-bootstrap==2.0.3.post1 diff --git a/symposion_project/settings.py b/symposion_project/settings.py index d2372f05..d0a3366e 100644 --- a/symposion_project/settings.py +++ b/symposion_project/settings.py @@ -166,6 +166,7 @@ INSTALLED_APPS = [ "mptt", "reversion", "easy_thumbnails", + "sitetree", # Pinax "pinax.apps.account", diff --git a/symposion_project/templates/site_base.html b/symposion_project/templates/site_base.html index c33d40e2..b8474757 100644 --- a/symposion_project/templates/site_base.html +++ b/symposion_project/templates/site_base.html @@ -2,14 +2,14 @@ {% load metron_tags %} {% load i18n %} +{% load sitetree %} {% block extra_head_base %} {% block extra_head %}{% endblock %} {% endblock %} {% block nav %} - + {% sitetree_menu from "root" include "trunk" %} {% endblock %} {% block footer %} diff --git a/symposion_project/templates/sitetree/menu.html b/symposion_project/templates/sitetree/menu.html new file mode 100644 index 00000000..93a50ea8 --- /dev/null +++ b/symposion_project/templates/sitetree/menu.html @@ -0,0 +1,11 @@ +{% load sitetree %} + \ No newline at end of file