From d9c4c369924d1874e68b19ed93aa1aefa439b0cd Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Fri, 04 Dec 2026 08:26:53 +0000
Subject: [PATCH] Add /panel command with deep link to open Mini App with chat context

---
 web/templates/log.html |   44 ++++++++++++++++----------------------------
 1 files changed, 16 insertions(+), 28 deletions(-)

diff --git a/web/templates/log.html b/web/templates/log.html
index adc286f..0d19ada 100644
--- a/web/templates/log.html
+++ b/web/templates/log.html
@@ -3,33 +3,21 @@
 {% block header %}Журнал модерации{% endblock %}
 {% block content %}
 
-<div class="overflow-hidden rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm">
-    <table class="w-full text-sm">
-        <thead class="bg-gray-50 dark:bg-gray-900/60 text-gray-500 dark:text-gray-400">
-            <tr>
-                <th class="px-5 py-3 text-left font-medium">Время</th>
-                <th class="px-5 py-3 text-left font-medium">Чат</th>
-                <th class="px-5 py-3 text-left font-medium">Действие</th>
-                <th class="px-5 py-3 text-left font-medium">Админ</th>
-                <th class="px-5 py-3 text-left font-medium">Цель</th>
-                <th class="px-5 py-3 text-left font-medium">Причина</th>
-            </tr>
-        </thead>
-        <tbody class="divide-y divide-gray-100 dark:divide-gray-800">
-            {% for r in rows %}
-            <tr class="hover:bg-gray-50 dark:hover:bg-gray-800/50">
-                <td class="px-5 py-3 text-gray-500">{{ fmt_dt(r.created_at) }}</td>
-                <td class="px-5 py-3">{{ names.get(r.chat_id, r.chat_id) }}</td>
-                <td class="px-5 py-3">{{ r.action }}</td>
-                <td class="px-5 py-3">{{ r.admin_id }}</td>
-                <td class="px-5 py-3">{{ r.target_id }}</td>
-                <td class="px-5 py-3">{{ r.reason or "-" }}</td>
-            </tr>
-            {% else %}
-            <tr><td colspan="6" class="px-5 py-8 text-center text-gray-500">Журнал пуст.</td></tr>
-            {% endfor %}
-        </tbody>
-    </table>
-</div>
+<section class="divide-y divide-gray-100 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-sm dark:divide-gray-800 dark:border-gray-800 dark:bg-gray-900">
+    {% for r in rows %}
+    <div class="p-4 text-sm">
+        <div class="flex flex-wrap items-center gap-x-2 gap-y-1">
+            <span class="font-medium">{{ r.action }}</span>
+            <span class="text-gray-500">{{ names.get(r.chat_id, r.chat_id) }}</span>
+            <span class="ml-auto text-xs text-gray-400">{{ fmt_dt(r.created_at) }}</span>
+        </div>
+        <div class="mt-1 text-gray-500">
+            Админ {{ r.admin_id }} → цель {{ r.target_id }}{% if r.reason %} · {{ r.reason }}{% endif %}
+        </div>
+    </div>
+    {% else %}
+    <div class="p-8 text-center text-gray-500">Журнал пуст.</div>
+    {% endfor %}
+</section>
 
 {% endblock %}

--
Gitblit v1.9.3