diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-02-20 11:48:05 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-02-20 11:48:05 +0000 |
commit | 882d812190259d44a470198ee6846cbbcfbbd1c3 (patch) | |
tree | 048995a391d6c0b188eeed5d43561f9e45772bad | |
parent | 88be383f648ad776402e6a33918d49c50462e759 (diff) | |
parent | a15ec3f01e8cd73aa4da3eb5ca16e58f9bb95561 (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
-rw-r--r-- | app/views/request/select_authority.html.erb | 9 | ||||
-rw-r--r-- | app/views/user/_signin.html.erb | 9 | ||||
-rw-r--r-- | config/general.yml-example | 5 | ||||
-rw-r--r-- | doc/CHANGES.md | 3 | ||||
-rw-r--r-- | lib/configuration.rb | 1 |
5 files changed, 21 insertions, 6 deletions
diff --git a/app/views/request/select_authority.html.erb b/app/views/request/select_authority.html.erb index 134648264..9a5d565b6 100644 --- a/app/views/request/select_authority.html.erb +++ b/app/views/request/select_authority.html.erb @@ -18,9 +18,12 @@ <%= form_tag select_authority_path, { :id => 'search_form', :method => 'get' } do %> <div> <p> - <%= _(%Q(First, type in the <strong>name of the UK public authority</strong> you'd - like information from. <strong>By law, they have to respond</strong> - (<a href="{{url}}">why?</a>).), :url => (help_about_path(:anchor => 'whybother_them')).html_safe) %> + <%= _(%Q(First, type in the <strong>name of the public authority</strong> you'd + like information from.)) %> + <% if AlaveteliConfiguration.authority_must_respond %> + <%= _(%Q(<strong>By law, they have to respond</strong> (<a href="{{url}}">why?</a>).), + :url => (help_about_path(:anchor => 'whybother_them')).html_safe) %> + <% end %> </p> <%= text_field_tag :query, diff --git a/app/views/user/_signin.html.erb b/app/views/user/_signin.html.erb index 7428082d3..f63c289df 100644 --- a/app/views/user/_signin.html.erb +++ b/app/views/user/_signin.html.erb @@ -22,9 +22,12 @@ </p> <p class="form_checkbox"> - <%= check_box_tag 'remember_me', "1", false, :tabindex => 90 %> - <label for="remember_me"><%= _('Remember me</label> (keeps you signed in longer; - do not use on a public computer) ')%></p> + <%= check_box_tag 'remember_me', "1", false, :tabindex => 90 %> + + <label for="remember_me"> + <%= _('Remember me (keeps you signed in longer; do not use on a public computer)') %> + </label> + </p> <div class="form_button"> <%= hidden_field_tag 'token', params[:token], {:id => 'signin_token' } %> diff --git a/config/general.yml-example b/config/general.yml-example index 5be62ee21..1f126c5a5 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -154,6 +154,11 @@ USE_DEFAULT_BROWSER_LANGUAGE: true # --- INCLUDE_DEFAULT_LOCALE_IN_URLS: true +# Are authorities required to respond by law? +# +# AUTHORITY_MUST_RESPOND: Boolean (default: true) +AUTHORITY_MUST_RESPOND: true + # The REPLY...AFTER_DAYS settings define how many days must have passed before # an answer to a request is officially late. The SPECIAL case is for some types # of authority (for example: in the UK, schools) which are granted a bit longer diff --git a/doc/CHANGES.md b/doc/CHANGES.md index 421099604..dee11f6f7 100644 --- a/doc/CHANGES.md +++ b/doc/CHANGES.md @@ -2,6 +2,9 @@ ## Highlighted Features +* Added a new `AUTHORITY_MUST_RESPOND` configuration variable. Set this to + `true` If authorities must respond by law. Set to `false` otherwise. It + defaults to `true`. At the moment this just tweaks some UI text. * State changing admin actions are now restricted to PUT or POST methods to protect against CSRF attacks, and now use more standard RESTful routing. diff --git a/lib/configuration.rb b/lib/configuration.rb index 2144f9954..90fd30d5f 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -19,6 +19,7 @@ module AlaveteliConfiguration :ADMIN_PASSWORD => '', :ADMIN_USERNAME => '', :ALLOW_BATCH_REQUESTS => false, + :AUTHORITY_MUST_RESPOND => true, :AVAILABLE_LOCALES => '', :BLACKHOLE_PREFIX => 'do-not-reply-to-this-address', :BLOG_FEED => '', |