diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 3 | ||||
-rw-r--r-- | config/crontab-example | 1 | ||||
-rw-r--r-- | config/general.yml-example | 6 | ||||
-rw-r--r-- | config/routes.rb | 4 |
4 files changed, 14 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index cbc7b9413..6b7d1b976 100644 --- a/config/application.rb +++ b/config/application.rb @@ -103,6 +103,9 @@ module Alaveteli 'jquery.fancybox-1.3.4.css', 'jquery.Jcrop.css', 'excanvas.min.js', + 'select-authorities.js', + 'jquery_ujs.js', + 'new-request.js', 'fonts.css', 'print.css', 'admin.css', diff --git a/config/crontab-example b/config/crontab-example index 366624998..64d0c45c9 100644 --- a/config/crontab-example +++ b/config/crontab-example @@ -12,6 +12,7 @@ MAILTO=cron-!!(*= $site *)!!@mysociety.org # Every 10 minutes 5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-alert-tracks check 5,15,25,35,45,55 * * * * !!(*= $user *)!! /etc/init.d/foi-purge-varnish check +0,10,20,30,40,50 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/send-batch-requests.lock /data/vhost/!!(*= $vhost *)!!/!!(*= $vcspath *)!!/script/send-batch-requests || echo "stalled?" # Once an hour 09 * * * * !!(*= $user *)!! run-with-lockfile -n !!(*= $vhost_dir *)!!/alert-comment-on-request.lock !!(*= $vhost_dir *)!!/!!(*= $vcspath *)!!/script/alert-comment-on-request || echo "stalled?" diff --git a/config/general.yml-example b/config/general.yml-example index 2bead2021..2b68721a5 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -243,3 +243,9 @@ SHARED_DIRECTORIES: - lib/acts_as_xapian/xapiandbs/ - vendor/bundle - public/assets + +# Allow some users to make batch requests to multiple authorities. Once +# this is set to true, you can enable batch requests for an individual +# user via the user admin page. + +ALLOW_BATCH_REQUESTS: false diff --git a/config/routes.rb b/config/routes.rb index 27311fab7..87a62c0bf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,9 +35,11 @@ Alaveteli::Application.routes.draw do match '/list' => 'request#list', :as => :request_list match '/select_authority' => 'request#select_authority', :as => :select_authority + match '/select_authorities' => 'request#select_authorities', :as => :select_authorities match '/new' => 'request#new', :as => :new_request match '/new/:url_name' => 'request#new', :as => :new_request_to_body + match '/new_batch' => 'request#new_batch', :as => :new_batch match '/request/search_ahead' => 'request#search_typeahead', :as => :search_ahead @@ -63,6 +65,8 @@ Alaveteli::Application.routes.draw do resource :report, :only => [:new, :create] end + resources :info_request_batch, :only => :show + #### User controller # Use /profile for things to do with the currently signed in user. # Use /user/XXXX for things that anyone can see about that user. |