added beginnings of tree view for categories

This commit is contained in:
2013-07-24 21:34:53 +10:00
parent e0e97b23e2
commit 798ab9cbbe
2 changed files with 8 additions and 0 deletions

7
templates/children.html Normal file
View File

@@ -0,0 +1,7 @@
<ul>
{% for child in children %}
<li> <a href="{{ child.get_absolute_url }}">{{ child }}</a></li>
{% child.children.count > 0 %}
{% children_list child %}
{% endfor %}
</ul>

1
templates/main.html Normal file
View File

@@ -0,0 +1 @@
{% children_tag parent %}