From e95465f5ae087ed2f7a5b6b0941726ceca555611 Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Sat, 10 Oct 2026 15:43:39 +0000
Subject: [PATCH] fix flood: владелец бота и админы защищены от антифлуда, лог срабатываний, безопасный режим при ошибке проверки
---
web/templates/dashboard.html | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/web/templates/dashboard.html b/web/templates/dashboard.html
index 04f99c6..f3bb377 100644
--- a/web/templates/dashboard.html
+++ b/web/templates/dashboard.html
@@ -3,6 +3,15 @@
{% block header %}Дашборд{% endblock %}
{% block content %}
+{% if alarms %}
+<div class="rounded-xl border-2 border-red-500 bg-red-600 p-4 text-white shadow-lg">
+ <div class="text-lg font-bold">РЕЖИМ ТРЕВОГИ АКТИВЕН: {{ alarms|length }}</div>
+ <div class="mt-1 text-sm text-red-50">
+ {% for a in alarms %}{{ names.get(a.chat_id, a.chat_id) }}{% if not loop.last %}, {% endif %}{% endfor %}
+ </div>
+</div>
+{% endif %}
+
<div class="grid grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4">
{% set cards = [
("Чатов", st.chats, "text-brand-500"),
--
Gitblit v1.9.3