diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/general.yml-example | 8 | ||||
-rw-r--r-- | config/routes.rb | 1 |
2 files changed, 9 insertions, 0 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 646334f5c..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 |