cat-bookmarker/deps/phoenix/priv/templates/phx.gen.auth/_menu.html.heex

11 lines
561 B
Plaintext
Raw Normal View History

2024-03-10 18:52:04 +00:00
<ul>
<%%= if @current_<%= schema.singular %> do %>
<li><%%= @current_<%= schema.singular %>.email %></li>
<li><%%= link "Settings", to: Routes.<%= schema.route_helper %>_settings_path(@conn, :edit) %></li>
<li><%%= link "Log out", to: Routes.<%= schema.route_helper %>_session_path(@conn, :delete), method: :delete %></li>
<%% else %>
<li><%%= link "Register", to: Routes.<%= schema.route_helper %>_registration_path(@conn, :new) %></li>
<li><%%= link "Log in", to: Routes.<%= schema.route_helper %>_session_path(@conn, :new) %></li>
<%% end %>
</ul>