<% els = items.values.flatten %> <% if els.empty? %> <% if current_user.last_search_id.nil? %>

<%= I18n.t('things.none') %> <%= link_to I18n.t('license.here'), new_thing_path %>.

<% else %>

<%= I18n.t('searches.none') %>.

<% end %> <% else %> <% els.each do |item| %> <%= render item %> <% end %> <% end %>