diff options
-rw-r--r-- | app/controllers/admin_controller.rb | 4 | ||||
-rw-r--r-- | app/views/admin/index.rhtml | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 67cd5fac8..f00ee2c1e 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.14 2008-04-18 15:11:13 francis Exp $ +# $Id: admin_controller.rb,v 1.15 2008-05-21 23:34:23 francis Exp $ class AdminController < ApplicationController layout "admin" @@ -20,7 +20,7 @@ class AdminController < ApplicationController # Tasks to do @requires_admin_requests = InfoRequest.find(:all, :conditions => ["described_state = 'requires_admin'"]) @blank_contacts = PublicBody.find(:all, :conditions => ["request_email = ''"]) - @two_week_old_unclassified = InfoRequest.find(:all, :conditions => [ "awaiting_description and (select created_at from info_request_events where info_request_events.info_request_id = info_requests.id order by created_at desc limit 1) < ? and prominence != 'backpage'", Time.now() - 2.weeks ]) + @one_week_old_unclassified = InfoRequest.find(:all, :conditions => [ "awaiting_description and (select created_at from info_request_events where info_request_events.info_request_id = info_requests.id order by created_at desc limit 1) < ? and prominence != 'backpage'", Time.now() - 1.weeks ]) end def timeline diff --git a/app/views/admin/index.rhtml b/app/views/admin/index.rhtml index cca788f6f..88b5cb644 100644 --- a/app/views/admin/index.rhtml +++ b/app/views/admin/index.rhtml @@ -23,11 +23,11 @@ </ul> <% end %> -<% if @two_week_old_unclassified.size > 0 %> - <h3>Classify responses that are still unclassified two weeks after response</h3> +<% if @one_week_old_unclassified.size > 0 %> + <h3>Classify responses that are still unclassified one week after response</h3> <ul> - <% for @request in @two_week_old_unclassified %> + <% for @request in @one_week_old_unclassified %> <li><%= link_to h(@request.title), "request/show/" + @request.id.to_s %></li> <% end %> </ul> @@ -42,7 +42,7 @@ </ul> <% end %> -<% if @requires_admin_requests.size == 0 and @two_week_old_unclassified.size == 0 and @blank_contacts.size == 0 %> +<% if @requires_admin_requests.size == 0 and @one_week_old_unclassified.size == 0 and @blank_contacts.size == 0 %> <p>No pending administration required.</p> <% end %> |