From 5738a9b08e54bdb7496e36511f223b4737bcd9f5 Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Fri, 04 Dec 2026 08:21:58 +0000
Subject: [PATCH] Fix /panel button: use URL instead of web_app for group messages
---
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