diff options
-rw-r--r-- | app/controllers/request_controller.rb | 3 | ||||
-rw-r--r-- | app/views/request/frontpage.rhtml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index d32a852a8..5e69c7873 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.51 2008-02-19 12:13:07 francis Exp $ +# $Id: request_controller.rb,v 1.52 2008-02-19 12:28:59 francis Exp $ class RequestController < ApplicationController @@ -26,6 +26,7 @@ class RequestController < ApplicationController end def frontpage + @info_requests = InfoRequest.find :all, :order => "created_at desc", :conditions => "prominence = 'normal' and described_state in ('successful', 'partially_successful')", :limit => 3 end # Page new form posts to diff --git a/app/views/request/frontpage.rhtml b/app/views/request/frontpage.rhtml index e73842303..fd2c92ca3 100644 --- a/app/views/request/frontpage.rhtml +++ b/app/views/request/frontpage.rhtml @@ -12,6 +12,7 @@ </div> <div id="find_information"> - <h1>Find information that others requested</h1> + <h1>View information that others requested</h1> + <%= render :partial => 'request_listing', :locals => { :info_requests => @info_requests } %> <p><a href="/list">View all information</a></p> </div> |