13 lines
769 B
Plaintext
13 lines
769 B
Plaintext
<ul class="p-2 shadow menu menu-compact dropdown-content bg-base-100 text-neutral rounded-box w-52 flex flex-col gap-4">
|
|
<%= if @current_user do %>
|
|
<li class="p-2 pb-4 border-b-2"><%= @current_user.email %></li>
|
|
<li><%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %></li>
|
|
<li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
|
|
<% else %>
|
|
<%= link "Log in", to: Routes.user_session_path(@conn, :new), class: "btn" %>
|
|
<%= link "Register", to: Routes.user_registration_path(@conn, :new), class: "btn btn-primary" %>
|
|
<%= link "Log in", to: Routes.user_session_path(@conn, :new), class: "btn" %>
|
|
<%= link "Register", to: Routes.user_registration_path(@conn, :new), class: "btn btn-primary" %>
|
|
<% end %>
|
|
|