katbin/lib/ketbin_web/templates/layout/_user_menu.html.heex
SphericalKat 2ddccce85d
refactor(layout): use heex templates
Signed-off-by: SphericalKat <amolele@gmail.com>
2021-10-07 05:54:37 +05:30

11 lines
432 B
Plaintext

<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>