Add children count display on item list
This commit is contained in:
parent
ba2db2b729
commit
339de35020
|
@ -5,6 +5,10 @@
|
||||||
{% include "widgets/categoryicon.html" with category=item.primary_category %}
|
{% include "widgets/categoryicon.html" with category=item.primary_category %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
{% if item.get_children.count %}
|
||||||
|
<small class="pull-right">({{ item.get_children.count }} children)</small>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if show_paths %}
|
{% if show_paths %}
|
||||||
{% for parent in item.get_ancestors %}
|
{% for parent in item.get_ancestors %}
|
||||||
{{ parent.name }} »
|
{{ parent.name }} »
|
||||||
|
|
Loading…
Reference in New Issue