Add logout button to user profile in sidebar
- Door emoji button next to username - Links to /auth/logout - Redirects to home page after logout Chronicler #69
This commit is contained in:
@@ -97,9 +97,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
|
<div class="p-4 border-t border-gray-200 dark:border-gray-700">
|
||||||
<div class="flex items-center gap-3">
|
<div class="flex items-center justify-between">
|
||||||
<img src="https://cdn.discordapp.com/avatars/<%= adminUser.id %>/<%= adminUser.avatar %>.png" class="w-10 h-10 rounded-full">
|
<div class="flex items-center gap-3">
|
||||||
<span class="font-medium"><%= adminUser.username %></span>
|
<img src="https://cdn.discordapp.com/avatars/<%= adminUser.id %>/<%= adminUser.avatar %>.png" class="w-10 h-10 rounded-full">
|
||||||
|
<span class="font-medium"><%= adminUser.username %></span>
|
||||||
|
</div>
|
||||||
|
<a href="/auth/logout" class="text-gray-400 hover:text-red-500 transition" title="Logout">
|
||||||
|
🚪
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
Reference in New Issue
Block a user