{% import "photo_card.html" as photo_card %} {% import "header.html" as header %}
Album {{album["title"]}}
{{header.make_header()}}
{{album["title"]}}
{% set parent=album["parent"] %} {% if parent %}
Parent:
{{parent.title}}
{% else %}
Parent:
Albums
{% endif %} {% if album["sub_albums"] %}
Sub-albums
{% for sub_album in album["sub_albums"] %}
{% if sub_album["title"] %} {{sub_album["title"]}} {% else %} {{sub_album["id"]}} {% endif %}
{% endfor %}
{% endif %}
(download .tar)
{% if photos %}
Photos
{% for photo in photos %} {{photo_card.create_photo_card(photo, view=view)}} {% endfor %}
{% endif %}