Merge git://github.com/derega/philo into develop. Merged derega's nav example changes...
authorStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 27 Jun 2011 20:42:53 +0000 (16:42 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 27 Jun 2011 20:42:53 +0000 (16:42 -0400)
Conflicts:
docs/tutorials/shipherd.rst

docs/tutorials/shipherd.rst
philo/contrib/shipherd/templatetags/shipherd.py

index 3454ef2..914a6bb 100644 (file)
@@ -41,7 +41,7 @@ All you need to do now is show the navigation in the template! This is quite eas
                <ul>
                    {% recursenavigation node "main" %}
                        <li{% if navloop.active %} class="active"{% endif %}>
-                           {{ item.text }}
+                           <a href="{{ item.get_target_url }}">{{ item.text }}</a>
                        </li>
                    {% endrecursenavigation %}
                </ul>
index f522dfa..4fae9c4 100644 (file)
@@ -131,7 +131,7 @@ def recursenavigation(parser, token):
                <ul>
                    {% recursenavigation node "main" %}
                        <li{% if navloop.active %} class='active'{% endif %}>
-                           {{ item.text }}
+                           <a href="{{ item.get_target_url }}">{{ item.text }}</a>
                            {% if item.get_children %}
                                <ul>
                                    {{ children }}