<% if user_signed_in? %>
<li>
<%= link_to('Edit registration', edit_user_registration_path) %>
</li>
<% else %>
<%= link_to('Register', new_user_registration_path) %>
<% end %>