diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-03-07 17:51:39 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-03-08 11:22:45 +1100 |
commit | eadfc265ff83524cbd54b2682f2de818bca24bf4 (patch) | |
tree | b491de399d23685f2c65317099f82ecb565837a0 | |
parent | aece2f170d6bddcd5cd5eb9f4ac9d6ffb3d34b07 (diff) |
Removed unused admin page. This stuff is now shown on the summary page
-rw-r--r-- | app/controllers/admin_request_controller.rb | 15 | ||||
-rw-r--r-- | app/views/admin_request/list_old_unclassified.rhtml | 15 | ||||
-rw-r--r-- | config/routes.rb | 1 |
3 files changed, 0 insertions, 31 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index d84b44b6f..53055ae32 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -20,21 +20,6 @@ class AdminRequestController < AdminController :conditions => @query.nil? ? nil : ["lower(title) like lower('%'||?||'%')", @query] end - def list_old_unclassified - @info_requests = WillPaginate::Collection.create((params[:page] or 1), 50) do |pager| - info_requests = InfoRequest.find_old_unclassified(:conditions => ["prominence = 'normal'"], - :limit => pager.per_page, - :offset => pager.offset) - # inject the result array into the paginated collection: - pager.replace(info_requests) - - unless pager.total_entries - # the pager didn't manage to guess the total count, do it manually - pager.total_entries = InfoRequest.count_old_unclassified(:conditions => ["prominence = 'normal'"]) - end - end - end - def show @info_request = InfoRequest.find(params[:id]) # XXX is this *really* the only way to render a template to a diff --git a/app/views/admin_request/list_old_unclassified.rhtml b/app/views/admin_request/list_old_unclassified.rhtml deleted file mode 100644 index 2bdfcf7f4..000000000 --- a/app/views/admin_request/list_old_unclassified.rhtml +++ /dev/null @@ -1,15 +0,0 @@ -<% @title = "Unclassified responses" %> - -<h1><%=@title%></h1> - -<p>Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response:</p> -<ul> -<% for @request in @info_requests %> - <li> - <%= request_both_links(@request) %> - – <%=simple_date(@request.get_last_response_event.created_at)%> - </li> -<% end %> -</ul> - -<%= will_paginate(@info_requests, :class => "paginator") %> diff --git a/config/routes.rb b/config/routes.rb index adc8663c5..159a0eb60 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -189,7 +189,6 @@ ActionController::Routing::Routes.draw do |map| end map.with_options :controller => 'admin_request' do |admin| - admin.admin_request_list_old_unclassified '/admin/unclassified', :action => 'list_old_unclassified' admin.admin_request_index '/admin/request', :action => 'index' admin.admin_request_list '/admin/request/list', :action => 'list' admin.admin_request_show '/admin/request/show/:id', :action => 'show' |