From 339de3502053d601e0d7961c96c8909754fdac85 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Tue, 24 Oct 2017 23:03:01 +0200 Subject: [PATCH] Add children count display on item list --- templates/widgets/itemlist.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/widgets/itemlist.html b/templates/widgets/itemlist.html index 9f63118..8c67715 100644 --- a/templates/widgets/itemlist.html +++ b/templates/widgets/itemlist.html @@ -5,6 +5,10 @@ {% include "widgets/categoryicon.html" with category=item.primary_category %} + {% if item.get_children.count %} + ({{ item.get_children.count }} children) + {% endif %} + {% if show_paths %} {% for parent in item.get_ancestors %} {{ parent.name }} »