Tweak homepage css. Add user auth thru phx.gen.auth

This commit is contained in:
Ryan Pandya
2022-10-22 11:14:14 -07:00
parent a2842cdb2c
commit 51e559478a
42 changed files with 2683 additions and 43 deletions
@@ -0,0 +1,10 @@
<ul>
<%= if @current_user do %>
<li><%= @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 %>
<li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li>
<li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li>
<% end %>
</ul>