diff options
author | Piotr Dobrowolski <admin@tastycode.pl> | 2017-12-13 20:03:40 +0100 |
---|---|---|
committer | Piotr Dobrowolski <admin@tastycode.pl> | 2017-12-13 20:03:40 +0100 |
commit | ce0b081ba67092798920a23572908d28cec3bb7b (patch) | |
tree | 546fb0d0a8e4b4240d0a614555511debc0567cb5 | |
parent | fe1c6685b0179572daaf92d61ab1cc1c40a1c4f9 (diff) | |
download | spejstore-ce0b081ba67092798920a23572908d28cec3bb7b.tar.gz spejstore-ce0b081ba67092798920a23572908d28cec3bb7b.tar.bz2 spejstore-ce0b081ba67092798920a23572908d28cec3bb7b.tar.xz spejstore-ce0b081ba67092798920a23572908d28cec3bb7b.zip |
widgets/itemlist: add show_count parameter
-rw-r--r-- | templates/widgets/itemlist.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/widgets/itemlist.html b/templates/widgets/itemlist.html index 8c67715..c398ed6 100644 --- a/templates/widgets/itemlist.html +++ b/templates/widgets/itemlist.html @@ -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 %} |