{% load i18n vantage %}{% comment %} One request as a card: whose record, who asked and when, the fields, the note, and — once decided — who decided and why. Cards rather than table rows so the queue reads the same on a phone as at a desk. {% endcomment %}

{{ entry.panel.get_label }}

{% if entry.record_url %}{{ entry.request.object_repr }}{% else %}{{ entry.request.object_repr }}{% endif %}

{{ entry.request.get_status_display }}

{% translate "Someone" as unknown_actor %} {% blocktranslate with who=entry.request.requested_by_repr|default:unknown_actor when=entry.request.requested_at|date:"Y-m-d H:i" trimmed %} Asked by {{ who }}, {{ when }}. {% endblocktranslate %} {% if not entry.record_url and entry.request.is_pending %} {% translate "The record is no longer available to you." %} {% endif %}

{% include "vantage/approvals/_diff.html" with rows=entry.rows %} {% if entry.request.note and not entry.words_hidden %}

{{ entry.request.note }}

{% endif %} {% if not entry.request.is_pending and entry.request.decided_at %}

{% blocktranslate with who=entry.request.decided_by_repr|default:unknown_actor when=entry.request.decided_at|date:"Y-m-d H:i" status=entry.request.get_status_display trimmed %} {{ status }} by {{ who }}, {{ when }}. {% endblocktranslate %}

{% if entry.request.reason and not entry.words_hidden %}

{{ entry.request.reason }}

{% endif %} {% endif %} {% if entry.may_decide or entry.may_withdraw %}
{% if entry.may_decide %}{% translate "Review" %}{% else %}{% translate "Open" %}{% endif %}
{% endif %}