{% extends "base.html" %} {% load static %} {% block title %}{{ message.subject }} - {{ block.super }}{% endblock %} {% block content %}

Message Details

{{ message.subject }} {% if message.is_urgent %} Urgent {% endif %} {% if message.is_confidential %} Confidential {% endif %} {% if message.requires_acknowledgment %} Requires Acknowledgment {% endif %}

From:
{% if message.sender.profile.avatar %} {{ message.sender.get_full_name }} {% else %} {% endif %} {{ message.sender.get_full_name }} <{{ message.sender.email }}>
To:
{% for recipient in message.recipients.all %} {% if recipient.user %} {{ recipient.user.get_full_name }} {% elif recipient.email_address %} {{ recipient.email_address }} {% endif %} {% endfor %}
Date: {{ message.created_at|date:"M d, Y g:i A" }}
Type: {{ message.get_message_type_display }}
Priority: {% if message.priority == 'CRITICAL' %} {{ message.get_priority_display }} {% elif message.priority == 'URGENT' %} {{ message.get_priority_display }} {% elif message.priority == 'HIGH' %} {{ message.get_priority_display }} {% else %} {{ message.get_priority_display }} {% endif %}
{% if message.is_starred %} {% endif %} {% if message.status == 'READ' %} {% else %} {% endif %}
{{ message.content|safe }}
{% if message.has_attachments %}
Attachments
{% for attachment in message.attachments.all %}
{% if attachment.file_type == 'image' %} {% elif attachment.file_type == 'pdf' %} {% elif attachment.file_type == 'document' %} {% elif attachment.file_type == 'spreadsheet' %} {% else %} {% endif %}
{{ attachment.filename }}

{{ attachment.file_size|filesizeformat }}

{% endfor %}
{% endif %} {% if message.requires_acknowledgment %}
Acknowledgment Required
{% if not user_acknowledgment %}
Action Required

This message requires your acknowledgment. Please confirm that you have read and understood the content.

{% else %}
Acknowledged

You acknowledged this message on {{ user_acknowledgment.acknowledged_at|date:"M d, Y g:i A" }}.

{% endif %}
{% endif %} {% if message.message_thread_id %}
Conversation Thread
Loading conversation...
{% endif %}
Quick Reply
{% csrf_token %}
Full Reply
Message Status
Status: {% if message.status == 'SENT' %} {{ message.get_status_display }} {% elif message.status == 'DELIVERED' %} {{ message.get_status_display }} {% elif message.status == 'READ' %} {{ message.get_status_display }} {% elif message.status == 'FAILED' %} {{ message.get_status_display }} {% else %} {{ message.get_status_display }} {% endif %}
Sent: {{ message.sent_at|date:"M d, Y g:i A"|default:"Not sent" }}
{% if message.scheduled_at %}
Scheduled: {{ message.scheduled_at|date:"M d, Y g:i A" }}
{% endif %} {% if message.expires_at %}
Expires: {{ message.expires_at|date:"M d, Y g:i A" }}
{% endif %}
Message ID: {{ message.message_id|truncatechars:8 }}
{% if message.recipients.count > 1 %}
Delivery Status
{% for recipient in message.recipients.all %}
{% if recipient.user %} {{ recipient.user.get_full_name }} {% else %} {{ recipient.email_address }} {% endif %}
{% if recipient.read_at %} Read: {{ recipient.read_at|date:"M d, g:i A" }} {% elif recipient.delivered_at %} Delivered: {{ recipient.delivered_at|date:"M d, g:i A" }} {% elif recipient.sent_at %} Sent: {{ recipient.sent_at|date:"M d, g:i A" }} {% else %} Pending {% endif %}
{% if recipient.status == 'READ' %} {% elif recipient.status == 'delivered' %} {% elif recipient.status == 'sent' %} {% elif recipient.status == 'failed' %} {% else %} {% endif %}
{% endfor %}
{% endif %}
Related Messages
Loading...
Quick Actions
Reply Forward
{% endblock %}