{% import "photo_card.html" as photo_card %} {% import "header.html" as header %} Album {{album.display_name}} {{header.make_header(session=session)}}

{% if album.title %} {{album.title}} {% else %} Album {{album.id}} {% endif %}

{{album.description}}

{% set viewparam = "?view=list" if view == "list" else "" %} {% set parent = album.parent() %} {% if parent %}

Parent: {{parent.display_name}}

{% else %}

Parent: Albums

{% endif %} {% set sub_albums = album.children() %} {% if sub_albums %}

Sub-albums

{% endif %} {% set photos = album.photos() %} {% if photos or sub_albums %} {% endif %} {% if photos %}

Photos

{% if view != "list" %} List view {% else %} Grid view {% endif %} {% endif %}

{% if photos or sub_albums %} Download: {% if photos %} These files ({{album.sum_bytes(recurse=False, string=True)}}) {% endif %} {% if photos and sub_albums %}—{% endif %} {% if sub_albums %} Include children ({{album.sum_bytes(recurse=True, string=True)}}) {% endif %} {% endif %}