{% 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}}
{{album.get_children()|length}} {{-' | '-}} {{album.sum_photos(recurse=False)}}
{% endmacro %}