ref: master
app/views/search/_display_results.html.erb
<% @assets.each do |name| %> <% search = @searches[name] %> <% next if environment.enabled?("disable_asset_#{name}") %>"> <% if !search[:results].blank? %> <% if multiple_search?(@searches) %><% end %> <%= add_zoom_to_images %><%= @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]) %><% else %> <% if multiple_search? %><% search[:results].each do |hit| %> <%= render_for_class hit.class do |klass| %> <% name = klass.name.underscore %> <%= render partial_name_for(name, display), name.split('/').last.to_sym => hit %> <% end %> <% end %>
<%= @names[name] %>
<% end %><% end %><%= _('None') %>