1
0
Fork 0
forked from hswaw/spejstore

Add children count display on item list

This commit is contained in:
informatic 2017-10-24 23:03:01 +02:00
parent ba2db2b729
commit 339de35020

View file

@ -5,6 +5,10 @@
{% include "widgets/categoryicon.html" with category=item.primary_category %}
</td>
<td>
{% if item.get_children.count %}
<small class="pull-right">({{ item.get_children.count }} children)</small>
{% endif %}
{% if show_paths %}
{% for parent in item.get_ancestors %}
{{ parent.name }} &raquo;