{# Rainloop-style webmail layout #} {% load i18n %} {% if not mail_configured %}
{{ mail_error }}
{% elif mail_state == 'connect' %}
{% include "partials/email-connect-panel.html" %}
{% else %}
{% if mailboxes|length > 1 %}
{% csrf_token %}
{% else %} {{ mailbox }} {% endif %} {% trans "Добавить" %} {% trans "Написать" %}
{% csrf_token %}
{# ── Folders ── #} {# ── Message list ── #}
{% for key, label in folder_choices %}{% if active_folder == key %}{{ label }}{% endif %}{% endfor %} {% if unread_count and active_folder == 'inbox' %}{{ unread_count }}{% endif %}
{% if messages %} {% for msg in messages %} {% include "partials/email-list-row.html" %} {% endfor %} {% if mail_has_more %}
{% endif %} {% else %}
{% if search_q %}Нічого не знайдено.{% else %}Немає листів у цій папці.{% endif %}
{% endif %}
{# ── Reader / Compose ── #}
{% if compose %}

Новий лист

Скасувати
{% if send_errors %}
{% for err in send_errors %}
{{ err }}
{% endfor %}
{% endif %} {% if send_success %}
Лист відправлено.
{% endif %}
{% csrf_token %}
До 5 файлів, кожен ≤ 10 МБ
{% elif view == 'read' and message %}

{{ message.subject|default:"(без теми)" }}

Від: {{ message.sender }}
Кому: {{ message.to }}
{% if message.date %}
Дата: {{ message.date }}
{% endif %}
{% if message.body_html %} {% elif message.body %}
{{ message.body|linebreaksbr }}
{% else %}
Порожній лист
{% endif %}
{% if message.attachments %}
Вкладення
{% for att in message.attachments %} {{ att.name }} {% if att.size %}{{ att.size|filesizeformat }}{% endif %} {% endfor %}
{% endif %} {% if send_success %}
Відповідь надіслано.
{% endif %} {% if send_errors %}
{% for err in send_errors %}
{{ err }}
{% endfor %}
{% endif %} {% if message.reply_to %}
{% csrf_token %}
Відповідь для {{ message.reply_to }}
{% endif %}
{% elif view == 'read' and read_error %}
{{ read_error }}
{% elif send_success %}
Лист відправлено.
{% else %}

Оберіть лист зі списку

{% endif %}
{% endif %}