<div>
<% if current_admin != nil %> Вы вошли как <strong><%= current_admin[:lname] %> <%= current_admin[:fname] %> </strong><%= link_to "Выйти", admins_logout_path, method: :delete %> <% elsif current_user != nil %> Вы вошли как <strong><%= current_user[:lname] %> <%= current_user[:fname] %> <%= current_user[:mname] %> </strong><%= link_to "Выйти", destroy_user_session_path, method: :delete %> <% end %>
</div>