{% macro create_root_album_card(view="grid") %} {% set view = (view if view in ("list", "grid") else "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 view = (view if view in ("list", "grid") else "grid") %} {% set viewparam = "?view=list" if view == "list" else "" %}
{% if view == "grid" %}
{% if unlink_parent is not none %} {% endif %}
{% endif %}
{{album.display_name}}
{% set child_count = album.get_children()|length %} {% set photo_count = album.sum_photos(recurse=False) %} {{child_count}} {{-' | '-}} {{photo_count}}
{% endmacro %}