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