feat: Add online clients tracking and display on dashboard and server views

This commit is contained in:
infosave2007
2026-01-30 21:07:30 +03:00
parent 28a6de5697
commit 66bd218aec
6 changed files with 182 additions and 13 deletions
+5 -3
View File
@@ -267,7 +267,7 @@
{% for client in clients %}
<tr class="border-t">
<td class="px-6 py-4">{{ client.name }}</td>
<td class="px-6 py-4">{{ client.login|default('-') }}</td>
<td class="px-6 py-4">{{ client.name }}</td>
<td class="px-6 py-4">
{% if client.protocol_name %}
<span class="px-2 py-1 bg-blue-100 text-blue-800 rounded text-xs">{{ client.protocol_name }}</span>
@@ -277,8 +277,10 @@
</td>
<td class="px-6 py-4">{{ client.client_ip }}</td>
<td class="px-6 py-4">
{% if client.status == 'active' %}
<span class="px-2 py-1 bg-green-100 text-green-800 rounded text-xs">{{ t('status.active') }}</span>
{% if client.name in online_logins %}
<span class="px-2 py-1 bg-green-100 text-green-800 rounded text-xs"><i class="fas fa-wifi mr-1"></i>Online</span>
{% elseif client.status == 'active' %}
<span class="px-2 py-1 bg-gray-100 text-gray-600 rounded text-xs">{{ t('status.active') }}</span>
{% else %}
<span class="px-2 py-1 bg-red-100 text-red-800 rounded text-xs">{{ t('status.disabled') }}</span>
{% endif %}