2021-06-28 11:14:14 +02:00
|
|
|
<ul>
|
|
|
|
<%= if @current_user do %>
|
2021-10-11 15:07:31 +02:00
|
|
|
<li><b>Current user:</b> <%= @current_user.username %></li>
|
2021-06-28 11:14:14 +02:00
|
|
|
<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>
|