Add children count display on item list

This commit is contained in:
Piotr Dobrowolski 2017-10-24 23:03:01 +02:00
parent ba2db2b729
commit 339de35020
1 changed files with 4 additions and 0 deletions

View File

@ -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 }} &raquo; {{ parent.name }} &raquo;