{% load url %} {% load crispy_forms_tags %}
{% for participant in object.participants.all %} {% if participant != request.user %}
User Mugshot
{% if participant.username in muted_usernames %}{% endif %} {{ participant.first_name }} {{ participant.last_name }} ({{ participant.username }}) {% if participant.username in muted_usernames %}{% endif %}
{{ participant.verification.verification_badge }} {{ participant.user_profile.department }}, {{ participant.user_profile.institution }}, {{ participant.user_profile.country.name }}.
{% endif %} {% endfor %}
{% for direct_message in object.direct_messages.all %} {% ifchanged direct_message.created.date %}
{{ direct_message.created.date }}
{% endifchanged %} {% ifchanged direct_message.sender direct_message.created.date %}
User Mugshot  {% if direct_message.sender.username in muted_usernames %}{% endif %} {{ direct_message.sender.first_name }} {{ direct_message.sender.last_name }} ({{ direct_message.sender.username }}) {% if direct_message.sender.username in muted_usernames %}{% endif %}
{{ direct_message.created|time }}
{% endifchanged %}
{% if direct_message.unread_by_user %}   {% endif %}
{% include "direct_messages/partials/directmessage_detail.html" with preview=False %}
{% if direct_message.sender == request.user and not direct_message.is_deleted %} {% elif direct_message.sender != request.user and not direct_message.is_deleted and not direct_message.is_reported_as_spam and not direct_message.sender.username in muted_usernames %} {% endif %}
{% endfor %}