{% if error_message %}
{{ error_message }}
{% endif %}
{% if success_message %}
{{ success_message }}
{% endif %}
{% if auto_reply_enabled %}
Автоответ активен
{% if api_cooldown_seconds_left and api_cooldown_seconds_left > 0 %}
· Следующий ответ через {{ api_cooldown_seconds_left }} сек.
{% endif %}
{% 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 %}
| Дата лога |
Дата оценки |
Оценка |
Товар |
Покупатель |
Текст отзыва |
Статус |
ID отзыва |
Ответ |
{% for log in auto_reply_logs %}
| {{ log["created_at"]|format_log_datetime }} |
{{ log["review_created_at"]|format_log_datetime if log["review_created_at"] else "—" }} |
{{ log["rating"] }}★ |
{{ log["product_name"] or "—" }}
{% if log["nm_id"] %}
#{{ log["nm_id"] }}
{% endif %}
|
{{ log["user_name"] or "—" }} |
{{ log["review_text"] or "—" }} |
{% if log["status"] == "sent" %}
✓ Отправлен
{% elif log["status"] == "skipped" %}
— Пропущен
{% else %}
✗ Ошибка
{% endif %}
|
{{ log["review_id"] or "—" }} |
{{ log["reply_text"] or "—" }} |
{% endfor %}
{% else %}
Пока нет записей автоответа.
{% endif %}