From d16e4067ed7233ef34c24d7b1ede5442ad6e0f64 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 18 Dec 2023 16:37:09 +0300 Subject: Display empty collections The count in the badge includes collections that are empty. This commit fixes the UI to display empty collections too. --- wqflask/wqflask/templates/collections/list.html | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/collections/list.html b/wqflask/wqflask/templates/collections/list.html index 3719bee5..c553717f 100644 --- a/wqflask/wqflask/templates/collections/list.html +++ b/wqflask/wqflask/templates/collections/list.html @@ -52,7 +52,6 @@ {% for uc in anon_collections %} - {% if uc.num_members > 0 %} {{ loop.index }} @@ -61,7 +60,6 @@ {{ uc.changed_timestamp }} {{ uc.num_members }} - {% endif %} {% endfor %} @@ -85,16 +83,14 @@ {% for uc in collections %} - {% if uc.num_members > 0 %} - - - {{ loop.index }} - {{ uc.name }} - {{ uc.created_timestamp }} - {{ uc.changed_timestamp }} - {{ uc.num_members }} - - {% endif %} + + + {{ loop.index }} + {{ uc.name }} + {{ uc.created_timestamp }} + {{ uc.changed_timestamp }} + {{ uc.num_members }} + {% endfor %} -- cgit v1.2.3