diff options
author | francis <francis> | 2009-01-10 13:51:04 +0000 |
---|---|---|
committer | francis <francis> | 2009-01-10 13:51:04 +0000 |
commit | 4c28f30e4547a5a8d54a949d0dd0c08dac9519ed (patch) | |
tree | f95d5397e0e35992b0688b50e784ed016ed5b7c4 /app/controllers/request_controller.rb | |
parent | 31392a9cc9ff26f51ad86e0ca798d71a0a288d95 (diff) |
Change wording of front page (due to Karl).
Make view requests link go to successful ones by default, rather than sent ones, so is more encouraging.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index b98db6622..9177e371a 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.143 2008-12-04 20:03:46 francis Exp $ +# $Id: request_controller.rb,v 1.144 2009-01-10 13:51:04 francis Exp $ class RequestController < ApplicationController @@ -72,6 +72,11 @@ class RequestController < ApplicationController @view = params[:view] if @view.nil? + redirect_to request_list_url(:view => 'successful') + return + end + + if @view == 'recent' @title = "Recently sent Freedom of Information requests" query = "variety:sent"; sortby = "newest" |