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/chat.html |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/web/templates/chat.html b/web/templates/chat.html
index 0de6a8c..cdb8d8b 100644
--- a/web/templates/chat.html
+++ b/web/templates/chat.html
@@ -19,7 +19,11 @@
         <img src="/avatar/{{ chat.chat_id }}" alt=""
              class="h-12 w-12 rounded-full bg-gray-200 object-cover dark:bg-gray-700"
              onerror="this.style.visibility='hidden'">
-        <div class="text-sm text-gray-500">id {{ chat.chat_id }} · {{ chat.type }}</div>
+        <div class="min-w-0 flex-1 text-sm text-gray-500">id {{ chat.chat_id }} · {{ chat.type }}</div>
+        <a href="/chats/{{ chat.chat_id }}/messages" target="_blank" rel="noopener"
+           class="shrink-0 rounded-lg border border-gray-200 px-3 py-1.5 text-sm text-brand-600 hover:bg-gray-100 dark:border-gray-700 dark:text-brand-400 dark:hover:bg-gray-800">
+            Последние сообщения ↗
+        </a>
     </div>
 
     <section class="rounded-xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-gray-900">

--
Gitblit v1.9.3