Show the child / photo count on the tooltip as well.

master
voussoir 2019-03-16 13:07:29 -07:00
parent 1b5770b81a
commit 572349c1f1
1 changed files with 4 additions and 2 deletions

View File

@ -43,9 +43,11 @@
</div> </div>
<div class="album_card_metadata"> <div class="album_card_metadata">
<span class="album_card_child_count" title="children">{{album.get_children()|length}}</span> {% set child_count = album.get_children()|length %}
{% set photo_count = album.sum_photos(recurse=False) %}
<span class="album_card_child_count" title="{{child_count}} children">{{child_count}}</span>
{{-' | '-}} {{-' | '-}}
<span class="album_card_photo_count" title="photos">{{album.sum_photos(recurse=False)}}</span> <span class="album_card_photo_count" title="{{photo_count}} photos">{{photo_count}}</span>
</div> </div>
</div> </div>
{% endmacro %} {% endmacro %}