mirror of
https://github.com/spchcap/speech.capital.git
synced 2026-01-14 08:38:42 +00:00
Feat: Display user role when logged in on main page
This commit is contained in:
@@ -17,7 +17,10 @@
|
|||||||
<i data-lucide="user-plus" class="w-4 h-4"></i>
|
<i data-lucide="user-plus" class="w-4 h-4"></i>
|
||||||
</a>
|
</a>
|
||||||
<div x-show="user" class="flex items-center gap-2 text-xs" style="display:none">
|
<div x-show="user" class="flex items-center gap-2 text-xs" style="display:none">
|
||||||
<span class="text-gray-300">as <strong x-text="user?.username" class="text-yellow-200/80"></strong></span>
|
<span class="text-gray-300">as
|
||||||
|
<strong x-text="user?.username" class="text-yellow-200/80"></strong>
|
||||||
|
(<span x-text="user?.role"></span>)
|
||||||
|
</span>
|
||||||
<a href="/api/logout" class="text-yellow-200/80 hover:text-yellow-200">
|
<a href="/api/logout" class="text-yellow-200/80 hover:text-yellow-200">
|
||||||
<i data-lucide="log-out" class="w-4 h-4"></i>
|
<i data-lucide="log-out" class="w-4 h-4"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user