{% has_perm 'recruitment.change_participationrequest' user view.study as can_change_participationrequest %}
{% for participation, buckets, can_access in participants %}
{% if can_access %}
{% if participation.status == participation.RECALL_APPOINTED %}
{{ buckets }}
{% if participation.appointment_today %}
{% blocktrans with time=participation.appointment|time %}
recall today at {{ time }}
{% endblocktrans %}
{% else %}
{% blocktrans with date=participation.appointment|date time=participation.appointment|time %}
recall on {{ date }} at {{ time }}
{% endblocktrans %}
{% endif %}
{% if participation.appointment_today %}
{% endif %}
{% elif participation.status_open and participation.last_contacted_elsewhere.date > last_agreeable_contact_time %}
{{ buckets }}
{% trans 'recently contacted in another recruitment' %}