% unless all_results.nil? || all_results.empty?%> <% all_results.each do |item|%> <% case item.type %> <% when 'user'%>