aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-02-27 22:32:13 +0000
committerfrancis <francis>2009-02-27 22:32:13 +0000
commit77344d35a51efb1673829d1c30477bbf6c6ae9d6 (patch)
tree47bd5fa54b78a09913a3fa9c35b314ca5c9d9353 /app/controllers/admin_general_controller.rb
parent5161e6b3d05e5d7879583439d6eca1a9b36d357a (diff)
Change it to ask "what best describes the status of this request now"
rather than "what *is* the status..." Remove "none of the above" for now, see how that goes. Add new error_message state, for delivery failures etc.
Diffstat (limited to 'app/controllers/admin_general_controller.rb')
-rw-r--r--app/controllers/admin_general_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/admin_general_controller.rb b/app/controllers/admin_general_controller.rb
index d824f1a6d..b5958cd73 100644
--- a/app/controllers/admin_general_controller.rb
+++ b/app/controllers/admin_general_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_general_controller.rb,v 1.1 2009-01-29 12:28:45 francis Exp $
+# $Id: admin_general_controller.rb,v 1.2 2009-02-27 22:32:13 francis Exp $
class AdminGeneralController < AdminController
def index
@@ -17,6 +17,7 @@ class AdminGeneralController < AdminController
# Tasks to do
@requires_admin_requests = InfoRequest.find(:all, :select => '*, ' + InfoRequest.last_event_time_clause + ' as last_event_time', :conditions => ["described_state = 'requires_admin'"], :order => "last_event_time")
+ @error_message_requests = InfoRequest.find(:all, :select => '*, ' + InfoRequest.last_event_time_clause + ' as last_event_time', :conditions => ["described_state = 'error_message'"], :order => "last_event_time")
@blank_contacts = PublicBody.find(:all, :conditions => ["request_email = ''"], :order => "updated_at")
@ten_days_old_unclassified = InfoRequest.find(:all, :select => '*, ' + InfoRequest.last_event_time_clause + ' as last_event_time', :conditions => [ "awaiting_description = ? and " + InfoRequest.last_event_time_clause + " < ? and prominence != 'backpage'", true, Time.now() - 10.days ], :order => "last_event_time")
@holding_pen_messages = InfoRequest.holding_pen_request.incoming_messages