have menu show username

This commit is contained in:
Lili (Tlapka) 2021-10-11 15:07:31 +02:00
parent 016b0b78bd
commit 8c8dc85d08
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<ul> <ul>
<%= if @current_user do %> <%= if @current_user do %>
<li><%= @current_user.email %></li> <li><b>Current user:</b> <%= @current_user.username %></li>
<li><%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %></li> <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> <li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
<% else %> <% else %>