diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/request_controller.rb | 11 | ||||
-rw-r--r-- | app/controllers/request_game_controller.rb | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 9bf51483a..fa132001b 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.188 2009-10-02 22:56:34 francis Exp $ +# $Id: request_controller.rb,v 1.189 2009-10-03 01:42:01 francis Exp $ class RequestController < ApplicationController @@ -307,9 +307,14 @@ class RequestController < ApplicationController }) # Don't give advice on what to do next, as it isn't their request - flash[:notice] = '<p>Thank you for updating this request!</p>' RequestMailer.deliver_old_unclassified_updated(@info_request) - redirect_to session[:request_game] ? play_url : request_url(@info_request) + if session[:request_game] + flash[:notice] = '<p>Thank you for updating the status of the request \'<a href="' + CGI.escapeHTML(request_url(@info_request)) + '">' + CGI.escapeHTML(@info_request.title) + '</a>\'. There are some more requests below for you to classify.</p>' + redirect_to play_url + else + flash[:notice] = '<p>Thank you for updating this request!</p>' + redirect_to request_url(@info_request) + end return end diff --git a/app/controllers/request_game_controller.rb b/app/controllers/request_game_controller.rb index 574388e21..4a95d4108 100644 --- a/app/controllers/request_game_controller.rb +++ b/app/controllers/request_game_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_game_controller.rb,v 1.4 2009-10-03 01:28:33 francis Exp $ +# $Id: request_game_controller.rb,v 1.5 2009-10-03 01:42:01 francis Exp $ class RequestGameController < ApplicationController @@ -30,7 +30,6 @@ class RequestGameController < ApplicationController end end - # Requests similar to this one def stop session[:request_game] = nil flash[:notice] = 'Thank you for helping us keep the site tidy!' |