">
<% if current_user %>
<%= link_to current_user.name, current_user %>
<%= link_to "Logout", logout_path, method: :delete %>
<%= link_to current_user.avatar(32), current_user %>
<% else %>
<%= link_to "Log in", login_path(return_path: request.env['PATH_INFO']), action: "new" %> | <%= link_to "Sign up", signup_path %>
<% end %>