{% load humanize %}

Messages

{% if chat.unread_count %} {{ chat.unread_count }} unread {% endif %} {% if chat.conversation %} {% endif %}
{% if chat.conversation and chat.conversation.is_closed %}
Conversation closed {% if chat.can_reopen %}
{% csrf_token %}
{% endif %}
{% endif %}
{% for msg in chat.messages_list %}
{{ msg.body }}
{{ msg.sender.get_full_name|default:msg.sender.email }} · {{ msg.created_at|naturaltime }}
{% empty %}

No messages yet. Start the conversation with this candidate.

{% endfor %}
{% if chat.can_send %}
{% csrf_token %}
{% elif chat.conversation and chat.conversation.is_closed %}
Messaging is disabled for closed conversations.
{% endif %} {% if chat.can_close %} {% endif %}