{% if album is not defined %} {## Album listing ###################################################} {% import "header.html" as header %} Albums {{header.make_header(session=session)}}

Albums

{% else %} {## Individual album ###################################################################} {% import "photo_card.html" as photo_card %} {% import "header.html" as header %} {% import "clipboard_tray.html" as clipboard_tray %} {{album.display_name}} | Albums {{header.make_header(session=session)}}

{{-album.display_name-}}

            {{-album.description-}}
        
{% set photos = album.get_photos() %} {% if photos %}

{{photos|length}} Photos

{% if view != "list" %} List view {% else %} Grid view {% endif %}
{% for photo in photos %} {{photo_card.create_photo_card(photo, view=view)}} {% endfor %}
{% endif %} {% set has_local_photos = photos|length > 0 %} {% set has_child_photos = album.has_any_subalbum_photo() %} {% if has_local_photos or has_child_photos %} {% endif %} {{clipboard_tray.clipboard_tray()}}
{% endif %} {## Shared ############################################################################}