adding in basic nav
This commit is contained in:
parent
b65a953ba5
commit
87f14b8015
4 changed files with 15 additions and 2 deletions
|
@ -27,6 +27,7 @@ django-taggit==0.9.3
|
||||||
django-reversion==1.5.1
|
django-reversion==1.5.1
|
||||||
django-markitup==1.0.0
|
django-markitup==1.0.0
|
||||||
markdown==2.1.1
|
markdown==2.1.1
|
||||||
|
django-sitetree==0.6
|
||||||
|
|
||||||
pinax-theme-bootstrap==2.0.3
|
pinax-theme-bootstrap==2.0.3
|
||||||
django-forms-bootstrap==2.0.3.post1
|
django-forms-bootstrap==2.0.3.post1
|
||||||
|
|
|
@ -166,6 +166,7 @@ INSTALLED_APPS = [
|
||||||
"mptt",
|
"mptt",
|
||||||
"reversion",
|
"reversion",
|
||||||
"easy_thumbnails",
|
"easy_thumbnails",
|
||||||
|
"sitetree",
|
||||||
|
|
||||||
# Pinax
|
# Pinax
|
||||||
"pinax.apps.account",
|
"pinax.apps.account",
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
{% load metron_tags %}
|
{% load metron_tags %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load sitetree %}
|
||||||
|
|
||||||
{% block extra_head_base %}
|
{% block extra_head_base %}
|
||||||
{% block extra_head %}{% endblock %}
|
{% block extra_head %}{% endblock %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block nav %}
|
{% block nav %}
|
||||||
<ul class="nav">
|
{% sitetree_menu from "root" include "trunk" %}
|
||||||
</ul>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block footer %}
|
{% block footer %}
|
||||||
|
|
11
symposion_project/templates/sitetree/menu.html
Normal file
11
symposion_project/templates/sitetree/menu.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{% load sitetree %}
|
||||||
|
<ul class="nav">
|
||||||
|
{% for item in sitetree_items %}
|
||||||
|
<li class="{{ item.is_current|yesno:"active ," }}">
|
||||||
|
<a href="{% sitetree_url for item %}" title="{{ item.hint|default:"" }}">{{ item.title_resolved }}</a>
|
||||||
|
{% if item.has_children %}
|
||||||
|
{% sitetree_children of item for menu template "sitetree/menu.html" %}
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
Loading…
Reference in a new issue