aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/general/frontpage.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/general/frontpage.rhtml')
-rw-r--r--app/views/general/frontpage.rhtml19
1 files changed, 15 insertions, 4 deletions
diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml
index 563a2609a..6001dba0f 100644
--- a/app/views/general/frontpage.rhtml
+++ b/app/views/general/frontpage.rhtml
@@ -1,7 +1,7 @@
<%= render :partial => 'help/alpha_notice' %>
<div id="make_requests">
- <h1>Make requests for information from the UK Government</h1>
+ <h1>Make requests in public for UK government information</h1>
<% if @public_bodies.size == 0 and @query_made %>
<div id="error">
@@ -57,9 +57,20 @@
</div>
<div id="find_information">
- <h1>Explore information that others requested</h1>
- <%= render :partial => 'request/request_listing', :locals => { :info_requests => @info_requests } %>
- <p><%=link_to "View more successful requests", request_list_url(:view => 'successful') %></p>
+ <h1>Explore government information that others received</h1>
+ <% if @search_results.empty? %>
+ <p>None yet.</p>
+ <% else %>
+ <% for search_result in @search_results %>
+ <% if search_result.class.to_s == 'InfoRequestEvent' %>
+ <%= render :partial => 'request/request_listing_via_event', :locals => { :event => search_result, :info_request => search_result.info_request } %>
+ <% else %>
+ <p><strong>Unexpected search result type <%=search_result.class.to_s%></strong></p>
+ <% end %>
+ <% end %>
+ <% end %>
+
+ <p><%=link_to "More recent successful responses", request_list_url(:view => 'successful') %></p>
<% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>
<p>
<%= text_field_tag 'query', params[:query], { :size => 20 } %>