1 <% results.each do |source| %>
2 <% type = source[:type] || "Results" %>
3 <p class="search_results_heading"><%= type %> from <%= link_to source[:source], source[:url] %></p>
4 <% if source[:results] %>
5 <% if source[:results].empty? %>
6 <p class="search_results_entry">No results found</p>
8 <% source[:results].each do |result| %>
9 <p class="search_results_entry"><%= result_to_html(result) %></p>
13 <p class="search_results_error"><%= source[:error] %></p>