widgets/itemlist: add show_count parameter

This commit is contained in:
Piotr Dobrowolski 2017-12-13 20:03:40 +01:00
parent fe1c6685b0
commit ce0b081ba6
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
{% include "widgets/categoryicon.html" with category=item.primary_category %}
</td>
<td>
{% if item.get_children.count %}
{% if show_count|default_if_none:True and item.get_children.count %}
<small class="pull-right">({{ item.get_children.count }} children)</small>
{% endif %}