cirandas.net

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) %>

<%= @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| %> <%= 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 %>
<% else %> <% if multiple_search? %>

<%= @names[name] %>

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