{% extends "albums/_base.html" %} {% from "components/page_header.html" import page_header %} {% block title %}{{ _("Albums - Yaffo") }}{% endblock %} {% block albums_content %} {% call page_header(_("Albums")) %} {{ _("Curated collections you can browse and share with your other devices.") }} {% endcall %} {% if albums %}
{% for album in albums %}
{% if not album.cover %} {{ _('Empty album') }} {% elif album.cover.media_type == 'video' %} {# /media/ serves the ORIGINAL file, so a video there would stream an MP4 into an and fail. Videos are drawn from their poster, as on the home grid. #} {{ _('Cover of %(album)s', album=album.name) }} {% else %} {{ _('Cover of %(album)s', album=album.name) }} {% endif %}
{{ album.name }}
{{ _("%(count)s photos", count=album.item_count | format_integer) }} {% if album.is_shared %}{{ _("Shared") }}{% endif %}
{% endfor %}
{% else %}

{{ _("No albums yet") }}

{{ _("An album is a collection you curate by hand — create one, then add photos to it.") }}

{% endif %} {% endblock %}