mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Added a template for the template tags
This commit is contained in:
parent
084e4089e0
commit
8830d92f8e
1 changed files with 7 additions and 0 deletions
7
categories/templates/categories/ancestors_ul.html
Normal file
7
categories/templates/categories/ancestors_ul.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{% for node,structure in drilldown|tree_info %}
|
||||
{% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %}
|
||||
{% ifequal node category %}<strong>{{ node.name }}</strong>
|
||||
{% else %}<a href="{{ node.get_absolute_url }}">{{ node.name }}</a>
|
||||
{% endifequal %}
|
||||
{% for level in structure.closed_levels %}</li></ul>{% endfor %}
|
||||
{% endfor %}
|
||||
Loading…
Reference in a new issue