{% from "_macros.html" import status_pill %} {# One "My Holds" table row. Context: hold, queue_position (int|None), notice (opt), error (opt) — csrf_token/user via _render. #} {{ hold.work.title }} {{ status_pill(hold.status) }} {% if hold.suspended_until %}
Suspended until {{ hold.suspended_until.isoformat() }} {% if hold.suspended_reason %}
{{ hold.suspended_reason }}{% endif %} {% endif %} {% if queue_position %}#{{ queue_position }}{% else %}—{% endif %} {{ hold.expires_at.strftime("%Y-%m-%d") if hold.expires_at else "—" }} {% if hold.status == "waiting" and not hold.suspended_until %}
{% elif hold.status == "waiting" and hold.suspended_until %}
{% endif %}
{% if notice %}{{ notice }}{% endif %} {% if error %}{{ error }}{% endif %}