{% extends "base.html" %} {% from "components/modal.html" import render_modal with context %} {% block extra_styles %} {# index.css owns .photo-grid / .photo-card — the album grid reuses them, so a photo looks the same here as on the home page. #} {% endblock %} {% macro render_new_album_form() %}

{{ _("Starts empty — add photos to it once it exists.") }}

{% endmacro %} {% block content %}
{% if error %}

{{ error }}

{% endif %} {% block albums_content %}{% endblock %}
{# Shared by every albums page so "New album" works from the overview and from inside an album. #} {{ render_modal( 'newAlbumModal', _('New Album'), url_for('albums_create'), render_new_album_form, _('Create') ) }} {% endblock %}