<%= if @current_user do %>
- <%= @current_user.email %>
- <%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %>
- <%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %>
<% else %>
<%= if registration_enabled() do %>
- <%= link "Register", to: Routes.user_registration_path(@conn, :new) %>
<% end %>
- <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
<% end %>