have menu show username
This commit is contained in:
parent
016b0b78bd
commit
8c8dc85d08
|
@ -1,6 +1,6 @@
|
|||
<ul>
|
||||
<%= 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 "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
|
||||
<% else %>
|
||||
|
|
Loading…
Reference in New Issue