My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
444 B

<%= if @current_user do %>
<%= active_link(@conn, "User", to: Routes.user_path(@conn, :index), wrap_tag: :li) %>
<li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
<% else %>
<%= if not Mirage.Accounts.has_user? do %>
<li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li>
<% end %>
<li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li>
<% end %>