Skip to content

Commit

Permalink
adding in basic nav
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeman committed May 22, 2012
1 parent b65a953 commit 87f14b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions symposion_project/requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions symposion_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
"mptt",
"reversion",
"easy_thumbnails",
"sitetree",

# Pinax
"pinax.apps.account",
Expand Down
4 changes: 2 additions & 2 deletions symposion_project/templates/site_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

{% load metron_tags %}
{% load i18n %}
{% load sitetree %}

{% block extra_head_base %}
{% block extra_head %}{% endblock %}
{% endblock %}

{% block nav %}
<ul class="nav">
</ul>
{% sitetree_menu from "root" include "trunk" %}
{% endblock %}

{% block footer %}
Expand Down
11 changes: 11 additions & 0 deletions symposion_project/templates/sitetree/menu.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 87f14b8

Please sign in to comment.