{% block content %} {% if user.is_authenticated %}

{{ message.subject }}

{{ message.sender.first_name }} From: {{ message.sender.first_name }} {{ message.sender.last_name }}
To: {% for receiver in message.receivers.all %} {{ receiver.first_name }} {{ receiver.first_name }} {{ receiver.last_name }}{% if not forloop.last %}, {% endif %} {% endfor %}

{{ message.body }}

{% if message.attachment %}

Attachment: {{ message.attachment.name }}

{% endif %}

Replies

Add a Reply

{% csrf_token %} {{ form.as_p }}
{% else %}

Please log in to view this message.

{% endif %} {% endblock %}