{# One row of the attachments list. Renders both the standard read view (Edit / Delete actions) and the bulk missing-alt edit form (inline textarea + Save button). Wrapped in a stable id so the htmx response from /alt-text can swap it in place. #} {% set thumb_key = thumb_storage_key_by_id.get(r.id) if thumb_storage_key_by_id is defined else none %} {% if thumb_key %} {{ r.alt_text or '' }} {% else %}
{% endif %} {{ r.filename }} {% if r.width and r.height %}
{{ r.width }}×{{ r.height }} {% endif %} {{ r.content_type }} {% if missing_alt %}
{% if just_saved %} ✓ Saved {% endif %}
{% else %} {{ r.size_bytes }} B {{ r.created_at.strftime('%Y-%m-%d') }} {% endif %} Edit