{% macro create_root_album_card(view="grid") %} {% set viewparam = "?view=list" if view == "list" else "" %} {% if view == "list" %}
Albums
{% else %}
Albums
{% endif %} {% endmacro %} {% macro create_album_card(album, view="grid", unlink_parent=none) %} {% set viewparam = "?view=list" if view == "list" else "" %} {% if view == "list" %}
{{album.display_name}}
{{album.get_children()|length}} children {{-' | '-}} {{album.sum_photos(recurse=False)}} photos
{% else %}
{{album.display_name}}
{{album.get_children()|length}} children {{-' | '-}} {{album.sum_photos(recurse=False)}} photos
{% if unlink_parent is not none %} {% endif %}
{% endif %} {% endmacro %}