{% if error_message %}
{{ error_message }}
{% endif %}
{% if success_message %}
{{ success_message }}
{% endif %}
{% if auto_reply_enabled %}
Автоответ активен
· Следующий ответ через {{ api_cooldown_seconds_left or 0 }} сек.
{% endif %}
{% if auto_reply_queue %}
| # |
ID отзыва |
Дата оценки |
Оценка |
Товар |
Покупатель |
{% for item in auto_reply_queue %}
| {{ loop.index }} |
{{ item.get("id") or "—" }} |
{{ item.get("review_created_at")|format_log_datetime if item.get("review_created_at") else "—" }} |
{{ item.rating }}★ |
{{ item.get("product_name") or "—" }}
{% if item.get("nm_id") %}
#{{ item.nm_id }}
{% endif %}
|
{{ item.get("user_name") or "—" }} |
{% endfor %}
{% else %}
{% if auto_reply_enabled and next_fetch_seconds_left > 0 %}
Очередь подгрузится через {{ next_fetch_seconds_left }} сек.
{% elif auto_reply_enabled %}
Загрузка очереди…
{% else %}
Нажмите «Старт» для запуска автоответов.
{% endif %}
{% endif %}
{% if auto_reply_logs %}
{% for log in auto_reply_logs %}
{{ log['rating'] }}★
{% if log['status'] == 'sent' %}
✓ Отправлен
{% elif log['status'] == 'skipped' %}
— Пропущен
{% else %}
✗ Ошибка
{% endif %}
{{ log['product_name'] or '—' }}{% if log['nm_id'] %} #{{ log['nm_id'] }}{% endif %}
{{ log['user_name'] or '—' }}
{{ log['created_at']|format_log_datetime }}
{% if log['review_text'] %}
{{ log['review_text'] }}
{% endif %}
{% if log['reply_text'] %}
↩{{ log['reply_text'] }}
{% endif %}
{% endfor %}
{% else %}
Пока нет записей автоответа.
{% endif %}