aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/environment.rb1
-rw-r--r--config/general.yml-example8
-rw-r--r--config/routes.rb2
3 files changed, 11 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 2f7967cdc..daeefb615 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -146,3 +146,4 @@ require 'tnef.rb'
require 'i18n_fixes.rb'
require 'rack_quote_monkeypatch.rb'
require 'world_foi_websites.rb'
+require 'alaveteli_external_command.rb'
diff --git a/config/general.yml-example b/config/general.yml-example
index dcaa0d648..8c59b1b0e 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -122,3 +122,11 @@ GAZE_URL: http://gaze.mysociety.org
# The email address to which non-bounce responses should be forwarded
FORWARD_NONBOUNCE_RESPONSES_TO: user-support@localhost
+
+# Path to a program that converts a page at a URL to HTML. It should
+# take two arguments: the URL, and a path to an output file. A static
+# binary of wkhtmltopdf is recommended:
+# http://code.google.com/p/wkhtmltopdf/downloads/list
+# If the command is not present, a text-only version will be rendered
+# instead.
+HTML_TO_PDF_COMMAND: /usr/local/bin/wkhtmltopdf-amd64 \ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 1fa2f8aa0..414a47908 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -61,6 +61,8 @@ ActionController::Routing::Routes.draw do |map|
request.info_request_event '/request_event/:info_request_event_id', :action => 'show_request_event'
request.upload_response "/upload/request/:url_title", :action => 'upload_response'
+ request.download_entire_request '/request/:url_title/download', :action => 'download_entire_request'
+
end
# Use /profile for things to do with the currently signed in user.