{% if client.can_read_post(post) %}
{% if let Some(user) = user %} {{ user.get_avatar_html(crate::attachment::AttachmentSize::L)|safe }}
{{ user.get_url_token()|safe }}
{% else %} {# TODO: l10n #}
Guest
{% endif %}
{% if post.deleted_at.is_none() %}
{% if post.created_at != post.updated_at %}updated at {% endif %}
{% match post.content %}{% when Some with (content) %}
{% include "ugc/ugc.html" %}
{% when None %}{% endmatch %} {% match post_attachments %}{% when Some with (post_attachments) %}
{% for attachment in post_attachments %} {% endfor %}
{% when None %}{% endmatch %} {% if client.is_user() %} {% endif %} {% else %}
This message was deleted.
{% endif %}
{% endif %}