diff options
author | francis <francis> | 2008-07-08 09:41:04 +0000 |
---|---|---|
committer | francis <francis> | 2008-07-08 09:41:04 +0000 |
commit | 1aeaee94a47c6a912082f60085e130dac330bd19 (patch) | |
tree | efe41d77c1d3390a8641ac354047fc9a426e2aa1 /app/controllers/admin_controller.rb | |
parent | 7028e3cce83ce9e86d9620076257244a39585d7a (diff) |
Store incoming messages which aren't to a valid request in a holding pen, and
let people move them from admin interface.
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a40225a75..148853168 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_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: admin_controller.rb,v 1.16 2008-06-10 10:18:57 francis Exp $ +# $Id: admin_controller.rb,v 1.17 2008-07-08 09:41:04 francis Exp $ class AdminController < ApplicationController layout "admin" @@ -22,6 +22,7 @@ class AdminController < ApplicationController @requires_admin_requests = InfoRequest.find(:all, :select => '*, ' + last_event_time_clause + ' as last_event_time', :conditions => ["described_state = 'requires_admin'"], :order => "last_event_time") @blank_contacts = PublicBody.find(:all, :conditions => ["request_email = ''"], :order => "updated_at") @one_week_old_unclassified = InfoRequest.find(:all, :select => '*, ' + last_event_time_clause + ' as last_event_time', :conditions => [ "awaiting_description and " + last_event_time_clause + " < ? and prominence != 'backpage'", Time.now() - 1.weeks ], :order => "last_event_time") + @holding_pen_messages = InfoRequest.holding_pen_request.incoming_messages end def timeline |