{% extends 'mail/base.html' %}

{% block comment %}
    {% if message.status != 'deleted' %}
        {{ block.super }}
        {% if attachments %}
        <div class="bold gap-sm">Файлы</div>
        <div class="gap-xl">
        {% for attachment in attachments %}
            <div class="font-small gap-xs">
                <a class="link color-blue" href="{{ femida_url }}api/attachments/{{ attachment.id }}">{{ attachment.name }}</a>
            </div>
        {% endfor %}
        </div>
        {% endif %}
    {% else %}
        <div class="divider gap-lg"></div>
        <div class="bold gap-xl">Комментарий был удалён автором</div>
    {% endif %}
{% endblock %}
