Initial commit
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
<div class="user-box flex flex-wrap">
|
||||
<%= if @current_user do %>
|
||||
<h4 class="w-full"><%= @current_user.email %></h4>
|
||||
<%= link "Settings", class: "link",
|
||||
to: Routes.user_settings_path(@conn, :edit) %>
|
||||
<%= button "Log out", class: "btn 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) %>
|
||||
<% end %>
|
||||
</div>
|
Reference in New Issue
Block a user