mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac: admin user list active indicator
This commit is contained in:
parent
0518749d51
commit
1b095d12ff
1 changed files with 13 additions and 2 deletions
|
|
@ -355,14 +355,25 @@
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white max-w-48">
|
<td class="px-3 py-1 font-medium text-gray-900 dark:text-white max-w-48">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center gap-2">
|
||||||
<img
|
<img
|
||||||
class="rounded-full w-6 h-6 object-cover mr-2.5 flex-shrink-0"
|
class="rounded-full w-6 h-6 object-cover mr-0.5 flex-shrink-0"
|
||||||
src={`${WEBUI_API_BASE_URL}/users/${user.id}/profile/image`}
|
src={`${WEBUI_API_BASE_URL}/users/${user.id}/profile/image`}
|
||||||
alt="user"
|
alt="user"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="font-medium truncate">{user.name}</div>
|
<div class="font-medium truncate">{user.name}</div>
|
||||||
|
|
||||||
|
{#if user?.last_active_at && Date.now() / 1000 - user.last_active_at < 180}
|
||||||
|
<div>
|
||||||
|
<span class="relative flex size-1.5">
|
||||||
|
<span
|
||||||
|
class="absolute inline-flex h-full w-full animate-ping rounded-full bg-green-400 opacity-75"
|
||||||
|
></span>
|
||||||
|
<span class="relative inline-flex size-1.5 rounded-full bg-green-500"></span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class=" px-3 py-1"> {user.email} </td>
|
<td class=" px-3 py-1"> {user.email} </td>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue