diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-28 14:45:30 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-28 14:45:30 +0100 |
commit | e319d6c89acfad45f443a1a66c2b1bcf2672731c (patch) | |
tree | 81fa3f7cd88759e19fb7306698b674a8aace0c1b /app/controllers/services_controller.rb | |
parent | c81ab0b1982107f1c5e4793e6e903975c867b928 (diff) | |
parent | 084cc18aa872b3cd1cbc8c38d34dc17341472391 (diff) |
Merge branch 'feature/easy-request-hiding-for-admin' into develop
Diffstat (limited to 'app/controllers/services_controller.rb')
-rw-r--r-- | app/controllers/services_controller.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb index 225790d71..28dd2143d 100644 --- a/app/controllers/services_controller.rb +++ b/app/controllers/services_controller.rb @@ -21,4 +21,15 @@ class ServicesController < ApplicationController end render :text => text, :content_type => "text/plain" # XXX workaround the HTML validation in test suite end + def hidden_user_explanation + info_request = InfoRequest.find(params[:info_request_id]) + render :template => "admin_request/hidden_user_explanation", + :content_type => "text/plain", + :layout => false, + :locals => {:name_to => info_request.user.name, + :name_from => MySociety::Config.get("CONTACT_NAME", 'Alaveteli'), + :info_request => info_request, :reason => params[:reason], + :info_request_url => 'http://' + MySociety::Config.get('DOMAIN') + request_url(info_request), + :site_name => site_name} + end end |