aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/general.yml-example8
-rw-r--r--config/routes.rb2
2 files changed, 9 insertions, 1 deletions
diff --git a/config/general.yml-example b/config/general.yml-example
index 0753af46b..37b0c2fc9 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -192,3 +192,11 @@ MTA_LOG_TYPE: "exim"
# this will be included in the message people see when their request is
# successful.
DONATION_URL: "http://www.mysociety.org/donate/"
+
+# If you set this to 'true' then a page of statistics on the
+# performance of public bodies will be available:
+PUBLIC_BODY_STATISTICS_PAGE: false
+
+# The page of statistics for public bodies will only consider public
+# bodies that have had at least this number of requests:
+MINIMUM_REQUESTS_FOR_STATISTICS: 50
diff --git a/config/routes.rb b/config/routes.rb
index 5af94768c..1df74b669 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -105,6 +105,7 @@ Alaveteli::Application.routes.draw do
match '/body/:url_name/view_email' => 'public_body#view_email', :as => :view_public_body_email
match '/body/:url_name/:tag' => 'public_body#show', :as => :show_public_body_tag
match '/body/:url_name/:tag/:view' => 'public_body#show', :as => :show_public_body_tag_view
+ match '/body_statistics' => 'public_body#statistics', :as => :public_bodies_statistics
####
#### Comment controller
@@ -176,7 +177,6 @@ Alaveteli::Application.routes.draw do
match '/admin/timeline' => 'admin_general#timeline', :as => :admin_timeline
match '/admin/debug' => 'admin_general#debug', :as => :admin_debug
match '/admin/stats' => 'admin_general#stats', :as => :admin_stats
- match '/admin/javascripts/admin.js' => 'admin_general#admin_js', :as => :admin_js
####
#### AdminRequest controller