|
|
|
@ -69,7 +69,12 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
|
|
|
|
|
{@current_user.email}
|
|
|
|
|
</button>
|
|
|
|
|
<!-- Dropdown menu -->
|
|
|
|
|
<div id="dropdown-user-info" class="z-10 hidden text-base list-none bg-white rounded-lg shadow-sm w-40 dark:bg-gray-700 flex flex-col items-center pt-2">
|
|
|
|
|
<div id="dropdown-user-info" class="z-10 hidden text-base list-none bg-white rounded-lg shadow-sm w-40 dark:bg-gray-700 flex flex-col items-center pt-2 border dark:border-gray-600">
|
|
|
|
|
<%= if @current_user.role != :user do %>
|
|
|
|
|
<p class="text-zinc-700 dark:text-white">
|
|
|
|
|
role: {@current_user.role}
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
|
|
|
|
<.link patch={~p"/sign-out"}>
|
|
|
|
|
<.primary_button>
|
|
|
|
|
Sign Out
|
|
|
|
|