widgets/itemlist: add show_count parameter
This commit is contained in:
parent
fe1c6685b0
commit
ce0b081ba6
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue