blob: b1af2464dc4ec5e31bc71c0e5fbd4fe75b0bebe1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<div>
<% if !@xapian_requests.nil? %>
<% if @xapian_requests.results.size > 0 %>
<h3><%= _('Top search results:') %></h3>
<p>
<%= _('Select one to see more information about the authority.')%>
</p>
<% else %>
<h3><%= _('No results found.') %></h3>
<% end %>
<div id="authority_search_ahead_results">
<% for result in @xapian_requests.results %>
<%= render :partial => 'body_listing_single', :locals => { :public_body => result[:model] } %>
<% end %>
</div>
<%= will_paginate WillPaginate::Collection.new(@page, @per_page, @xapian_requests.matches_estimated), :params => {:controller=>"request", :action => "select_authority"} %>
<% end %>
</div>
|