From 572349c1f1417833f4d5c7974600bdb525466d2e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 16 Mar 2019 13:07:29 -0700 Subject: [PATCH] Show the child / photo count on the tooltip as well. --- frontends/etiquette_flask/templates/album_card.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/templates/album_card.html b/frontends/etiquette_flask/templates/album_card.html index 148b7bd..ab5bb63 100644 --- a/frontends/etiquette_flask/templates/album_card.html +++ b/frontends/etiquette_flask/templates/album_card.html @@ -43,9 +43,11 @@
- {{album.get_children()|length}} + {% set child_count = album.get_children()|length %} + {% set photo_count = album.sum_photos(recurse=False) %} + {{child_count}} {{-' | '-}} - {{album.sum_photos(recurse=False)}} + {{photo_count}}
{% endmacro %}