<% @assets.each do |name| %> <% search = @searches[name] %>
"> <% if !search[:results].blank? %> <% if multiple_search?(@searches) %>

<%= @names[name] %>

<% if search[:results].total_entries > SearchController::MULTIPLE_SEARCH_LIMIT %> <%= link_to(_('see all (%d)') % search[:results].total_entries, params.merge(:action => name), :class => 'see-more' ) %> <% end %> <% end %> <% display = display_filter(name, params[:display]) %>
    <% search[:results].each do |hit| %> <% partial = partial_for_class(hit.class, display) %> <% variable_name = partial.gsub("#{display}_", '').to_sym %> <%= render :partial => partial, :locals => {variable_name => hit} %> <% end %>
<% else %> <% if multiple_search? %>

<%= @names[name] %>

<% end %>
<%= _('None') %>
<% end %>
<% end %>
<%= add_zoom_to_images %>