aboutsummaryrefslogtreecommitdiffstats
path: root/lib/configuration.rb
Commit message (Collapse)AuthorAgeLines
* Merge branch 'public-body-locale-fallback' into rails-3-developLouise Crow2013-09-12-0/+1
|\ | | | | | | | | | | | | Conflicts: app/controllers/public_body_controller.rb config/general.yml-example lib/configuration.rb
| * Make falling back to default locale in public body listings optionalMark Longair2013-09-10-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the code stood, the list method in PublicBodyController would only return results that had translations of the public body in the default locale. This has a variety of problems if you're viewing pages in the non-default locale - for example, the "first letter" links wouldn't bring up the public bodies that began with that letter in the current locale, only those that began with it in the default locale. Ideally, every public body would be translated into every available locale for the site, but there are cases where deployers wish to have public body listings also include those from the default locale, in case there are untralsated public bodies: https://groups.google.com/d/msg/alaveteli-dev/zUY_USaAMAM/M7KTQ9RC5YUJ This commit makes the default behaviour to look for public body listings only in the current locale, but if the new configuration option PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE is set, then public body listings will be looked for in both the current locale and the default locale. Fixes #1000
* | Add a config option to enable the public body statistics pageMark Longair2013-08-20-0/+1
| |
* | Make the minimum requests for statistics configurableMark Longair2013-08-20-0/+1
|/ | | | This adds the MINIMUM_REQUESTS_FOR_STATISTICS config option.
* Allow the donation url to be configured. Closes #909.Louise Crow2013-06-07-0/+1
|
* Restore load of config (AlaveteliConfiguration is required in forward_on) - ↵Louise Crow2013-05-08-54/+57
| | | | update config to avoid redefinition of constant warnings.
* Merge branch 'develop' into rails-3-developLouise Crow2013-03-19-0/+1
|\ | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/views/admin_request/show.html.erb config/environment.rb
| * Follow alphabetical ordering.Louise Crow2013-03-19-1/+1
| |
| * Allow the emergency user account to be disabled.Louise Crow2013-03-19-0/+1
| |
* | Merge remote-tracking branch 'mysociety/develop' into rails-3-developHenare Degan2013-03-14-2/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/controllers/admin_request_controller.rb app/controllers/admin_track_controller.rb app/controllers/request_controller.rb app/controllers/services_controller.rb app/helpers/link_to_helper.rb app/mailers/request_mailer.rb app/models/application_mailer.rb app/models/info_request.rb app/views/admin_censor_rule/edit.html.erb app/views/admin_censor_rule/new.html.erb app/views/admin_public_body/_form.html.erb app/views/admin_public_body/_locale_selector.html.erb app/views/admin_public_body/_one_list.html.erb app/views/admin_public_body/edit.html.erb app/views/admin_public_body/list.html.erb app/views/admin_public_body/new.html.erb app/views/admin_request/_incoming_message_actions.html.erb app/views/admin_request/edit.html.erb app/views/admin_request/edit_comment.html.erb app/views/admin_request/edit_outgoing.html.erb app/views/admin_request/list.html.erb app/views/admin_request/list_old_unclassified.html.erb app/views/admin_request/show.html.erb app/views/admin_track/_some_tracks.html.erb app/views/admin_track/list.html.erb app/views/admin_user/edit.html.erb app/views/admin_user/list.html.erb app/views/admin_user/show.html.erb app/views/general/_footer.html.erb app/views/general/exception_caught.html.erb app/views/help/contact.html.erb app/views/layouts/default.html.erb app/views/public_body/_alphabet.html.erb app/views/request/_request_listing_single.html.erb app/views/request/_sidebar.html.erb app/views/request/new.html.erb app/views/request/show.html.erb app/views/request_mailer/external_response.rhtml app/views/request_mailer/fake_response.rhtml config/environment.rb config/environments/production.rb config/routes.rb spec/controllers/admin_censor_rule_controller_spec.rb spec/controllers/request_controller_spec.rb spec/controllers/track_controller_spec.rb spec/helpers/link_to_helper_spec.rb spec/mailers/request_mailer_spec.rb spec/models/info_request_spec.rb spec/spec_helper.rb spec/views/public_body/show.html.erb_spec.rb spec/views/request/show.html.erb_spec.rb vendor/plugins/rails_xss/lib/rails_xss/erubis.rb
| * Merge remote-tracking branch 'openaustralia_github/force-ssl' into developLouise Crow2013-03-12-0/+1
| |\ | | | | | | | | | | | | Conflicts: Gemfile.lock
| | * Add configuration to force ssl for the whole siteMatthew Landauer2013-02-15-0/+1
| | |
| * | Configurations ADMIN_BASE_URL and ADMIN_PUBLIC_URL are no longer used anywhereMatthew Landauer2013-02-15-2/+0
| |/
* | Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-2/+2
| |
* | Fix path to main configuration file. How did this ever work before?Matthew Landauer2013-01-25-2/+2
| |
* | Move Rails config overHenare Degan2012-12-11-0/+10
|/
* Add a configuration option to specify that you don't want the default locale ↵Louise Crow2012-11-28-0/+1
| | | | to appear in URLs generated by the application.
* Add optional branch to install themes from. Falls back if it doesn't exist.Matthew Landauer2012-11-01-0/+1
|
* Update twitter widget to latest versionMatthew Landauer2012-10-31-0/+1
|
* Default for ghostscript compression is documented as being false, so make it so.Louise Crow2012-10-25-1/+1
|
* Merge commit '3474b961f86ad743b958e9fce2c39e8e54ac6a95' into ↵Louise Crow2012-10-25-6/+6
|\ | | | | | | feature/nils_in_config
| * Fix empty configuration defaultsHenare Degan2012-10-19-6/+6
| | | | | | | | | | | | Because of the way that rblib/config.rb works, nil for these values would always raise an exeption (see line 209) so changing it to an empty string seems better. It fixes my problem where I purposely didn't define HTML_TO_PDF_COMMAND anyway.
* | Add support for showing all dates and times in the correct timezoneMatthew Landauer2012-10-19-0/+1
|/
* New configuration MTA_LOG_TYPE to set whether we are using exim or postfix ↵Matthew Landauer2012-10-11-0/+1
| | | | to deliver and receive our mail
* Merge remote-tracking branch 'henare_github/full-url-in-admin-emails' into ↵Louise Crow2012-10-04-1/+1
|\ | | | | | | develop
| * Correct default value for ADMIN_BASE_URLHenare Degan2012-10-04-1/+1
| | | | | | | | Back in 008e64e7 it was changed so that you could just set a blank value instead of '/admin/', it looks like test.yml was never updated and somehow lib/configuration.rb started off with the old value too.
* | Use new Configuration for OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILSMatthew Landauer2012-10-02-0/+1
|/
* Add undocumented UTILITY_SEARCH_PATH configuration to general.yml-exampleMatthew Landauer2012-09-25-1/+0
|
* Extract configuration with defaults into one moduleMatthew Landauer2012-09-25-0/+65