{% 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 photos = album.photos() %} {% if photos %}

Photos

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

{% set has_local_photos = photos|length > 0 %} {% set has_child_photos = album.sum_photos() > photos|length %} {% if has_local_photos or has_child_photos %} Download: {% if has_local_photos %} These files ({{album.sum_bytes(recurse=False, string=True)}}) {% endif %} {% if has_local_photos and has_child_photos %}—{% endif %} {% if has_child_photos %} Include children ({{album.sum_bytes(recurse=True, string=True)}}) {% endif %} {% endif %}