{%- macro message(post, visitor) -%}
<div class="js-message" data-message-id="{{ post.id }}">
    <p class="header">
        {% if post.sender_id == visitor.pk %}
            {% trans date=post.sent_at %}You wrote on {{ date }}:{% endtrans %}
        {% else %}
            {% trans user=post.sender.username,
                date=post.sent_at
            %}{{ user }} wrote on {{ date }}:{% endtrans %}
        {% endif %}
    </p>
    <div class="content">
    {{ post.html|safe }}
    </div>
</div>
{%- endmacro -%}
