{# One "My Loans" table row. Context: loan, notice (opt), error (opt), hide_actions (opt) — csrf_token/user provided by _render. Swapped whole via hx-swap="outerHTML" so success AND failure keep the row intact. #} {{ loan.item.barcode }} {{ loan.item.work.title }} {{ loan.due_at.strftime("%Y-%m-%d") if loan.due_at else "—" }} {% if loan.renewal_count %}(renewal {{ loan.renewal_count | int }}){% endif %} {% if not hide_actions %}
{% if has_permission(user, 'loan.claim.self') %}
{% endif %} {% endif %} {% if notice %}{{ notice }}{% endif %} {% if error %}{{ error }}{% endif %}