18 lines
777 B
Plaintext
18 lines
777 B
Plaintext
<div class="user-box flex gap-2">
|
|
<%= if @current_user do %>
|
|
<h4 class=""><%= @current_user.email %></h4>
|
|
<div class="tooltip tooltip-bottom" data-tip="Settings">
|
|
<%= button class: "btn btn-square btn-outline btn-sm", to: Routes.user_settings_path(@conn, :edit), method: :get do %>
|
|
<Icons.settings />
|
|
<% end %>
|
|
</div>
|
|
<%= button "Log out", class: "btn btn-outline btn-sm",
|
|
to: Routes.user_session_path(@conn, :delete), method: :delete %>
|
|
<% else %>
|
|
<%= link "Register", class: "link",
|
|
to: Routes.user_registration_path(@conn, :new) %>
|
|
<%= button "Log in", class: "btn btn-sm",
|
|
to: Routes.user_session_path(@conn, :new), method: :get %>
|
|
<% end %>
|
|
</div>
|