Update the user info to show the non-regular role and the border.

dev
KKlochko 2 months ago
parent e91f46c2cd
commit 601f77e0a8

@ -69,7 +69,12 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
{@current_user.email} {@current_user.email}
</button> </button>
<!-- Dropdown menu --> <!-- 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"}> <.link patch={~p"/sign-out"}>
<.primary_button> <.primary_button>
Sign Out Sign Out

Loading…
Cancel
Save