Clearer description that it is things to do.

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

<%=@info_request_count%> requests

<%=@user_count%> users

<%=@track_thing_count%> tracked things

Things to do

<% if @requires_admin_requests.size > 0 %>

Work out what to do with these unusual responses (a new category?)

    <% for @request in @requires_admin_requests %>

<%= link_to h(@request.title), "request/show/" + @request.id.to_s %>

    <% end %>

<% end %>

<% if @two_week_old_unclassified.size > 0 %>

Classify responses that are still unclassified two weeks after response

    <% for @request in @two_week_old_unclassified %>

<%= link_to h(@request.title), "request/show/" + @request.id.to_s %>

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

Find missing FOI email for these public authorities (try phoning!)

    <% for @blank_contact in @blank_contacts %>

<%= link_to h(@blank_contact.name), "body/show/" + @blank_contact.id.to_s %>

    <% end %>

<% end %>

<% if @requires_admin_requests.size == 0 and @two_week_old_unclassified.size == 0 and @blank_contacts.size == 0 %>

No pending administration required.

<% end %>

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

<%=@info_request_count%> requests

<%=@user_count%> users

<%=@track_thing_count%> tracked things

<% if @requires_admin_requests.size > 0 %>

Requests requiring admin attention

    <% for @request in @requires_admin_requests %>

<%= link_to h(@request.title), "request/show/" + @request.id.to_s %>

    <% end %>

<% end %>

<% if @two_week_old_unclassified.size > 0 %>

Still unclassified two weeks after response

    <% for @request in @two_week_old_unclassified %>

<%= link_to h(@request.title), "request/show/" + @request.id.to_s %>

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

Public authorities with missing contact details

    <% for @blank_contact in @blank_contacts %>

<%= link_to h(@blank_contact.name), "body/show/" + @blank_contact.id.to_s %>

    <% end %>

<% end %>

<% if @requires_admin_requests.size == 0 and @two_week_old_unclassified.size == 0 and @blank_contacts.size == 0 %>

No pending administration required.

<% end %>


ActionItem558: swiched the order of radio button

swiched the order of the sellers search block radio button between
producs and enterprises

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@2297 3f533792-8f58-4932-b0fe-aaf55b0a4547

<%= title %>

<% form_tag({:controller => 'search', :action => 'assets'}, {:method => 'get'}) do %>

<%= _('Search in:') %>
    <dir>
      <%= labelled_radio_button _('Enterprises'), 'asset', 'enterprises', true %>

      <%= labelled_radio_button _('Products'), 'asset', 'products', false %>
    </dir>

    <%= select_city(true) %>

    <%= labelled_select(_('Distance:'), 'radius', :first, :last, nil, [15, 30, 50, 100, 150, 200, 300, 400, 500, 1000].map{|n|[n, n.to_s + 'km']}) %>

    <%= submit_tag _('Search'), :class => 'button with-text icon-search' %>

<% end %>

<%= title %>

<% form_tag({:controller => 'search', :action => 'assets'}, {:method => 'get'}) do %>

<%= _('Search in:') %>
    <dir>
      <%= labelled_radio_button _('Products'), 'asset', 'products', true %>

      <%= labelled_radio_button _('Enterprises'), 'asset', 'enterprises', false %>
    </dir>

    <%= select_city(true) %>

    <%= labelled_select(_('Distance:'), 'radius', :first, :last, nil, [15, 30, 50, 100, 150, 200, 300, 400, 500, 1000].map{|n|[n, n.to_s + 'km']}) %>

    <%= submit_tag _('Search'), :class => 'button with-text icon-search' %>

<% end %>


Add google analytics code to the website.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
  <link rel="meta" title="DOAP" type="application/xml+rdf" href="doap.rdf" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>
      <%= title %>
  </title>

    <div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>

Download!

        <a href="<%= download %>" class="numbers"><%= version %>

<%= title %>

A command line template expansion tool

        <%= body %>

      Paolo Capriotti, <%= modified.pretty %>

      Theme extended from Paul Battley


only one form

only one form

git-svn-id: e70f47238a868777ecefe75ba01929cffb2d8127@654 d8b24053-1f83-4035-b5c3-ce8b92cd91ad

Feedbackformular

Hier hast Du die Möglichkeit uns ein Feedback zu senden.

<%= form_tag({:controller => :home, :action => :email}, :multipart => true)%>

Betreff
<%= text_field(:form, :name) %>

Feedback

<%= text_area(:form, :frage, :rows =>10, :cols => 80) %>

<%= submit_tag('Senden') %>

</form>
<form>

Send Email

<%= form_tag :action => 'sendmail' %>

Subject:
<%= text_field 'email', 'subject' %>

Recipient:
<%= text_field 'email', 'recipient' %>

Message

<%= text_area 'email', 'message' %>

<%= submit_tag "Send" %>
</form>


Fix wrong path to jquery

Fix wrong path to jquery

<%= _("General settings") %>

<% form_remote_for :session, @session, :url => {:action => @session.new? ? :new : :edit, :id => @session.id } do |f| %>

  <%= labelled_field(f, :name, _('Name'), f.text_field(:name), :class => 'session-field-name') %>
  <%= labelled_field(f, :description, _('Description'), f.text_area(:description), :class => 'session-field-description') %>

  <%= labelled_period_field(f, :start, :finish, _('Orders period'), :class => 'session-orders-period') %>
  <%= labelled_period_field(f, :delivery_start, :delivery_finish, _('Delivery period'), :class => 'session-orders-period') %>

    <%= f.label(:delivery_methods, _('Available delivery methods')) %>

        <%= render :partial => 'distribution_plugin_delivery_option/index', :locals => {:session => session} %>

        <%= lightbox_link_to _('Add method'), { :controller => :distribution_plugin_delivery_option, :action => "select", :session_id => @session.id },
          :class => 'session-add-delivery-option subtitle'  %>

  <%= f.submit @session.new? ? _('Create new cycle') : _('Save'), :onclick => 'saveClick = true; loadLightbox(this);' %>
  <%= link_to _('cancel changes'), @session.new? ? {:action => :index} : params %>
<% end %>

<%= javascript_include_tag '/plugins/distribution/public/jquery.calendrical.js' %>
<% javascript_tag do %>
  options = {isoTime: true}
  jQuery('#session_start_date, #session_start_time, #session_finish_date, #session_finish_time').calendricalDateTimeRange(options);
  jQuery('#session_delivery_start_date, #session_delivery_start_time, #session_delivery_finish_date, #session_delivery_finish_time').calendricalDateTimeRange(options);

  var saveClick = false;
  <% if @session.new? %>
    jQuery(window).bind('beforeunload', function () {
      if (!saveClick)
        jQuery.ajax({type: 'POST', async: false, url: '<%= url_for(:action => :destroy, :id => @session.id) %>'});
    });
  <% end %>
<% end %>

<%= _("General settings") %>

<% form_remote_for :session, @session, :url => {:action => @session.new? ? :new : :edit, :id => @session.id } do |f| %>

  <%= labelled_field(f, :name, _('Name'), f.text_field(:name), :class => 'session-field-name') %>
  <%= labelled_field(f, :description, _('Description'), f.text_area(:description), :class => 'session-field-description') %>

  <%= labelled_period_field(f, :start, :finish, _('Orders period'), :class => 'session-orders-period') %>
  <%= labelled_period_field(f, :delivery_start, :delivery_finish, _('Delivery period'), :class => 'session-orders-period') %>

    <%= f.label(:delivery_methods, _('Available delivery methods')) %>

        <%= render :partial => 'distribution_plugin_delivery_option/index', :locals => {:session => session} %>

        <%= lightbox_link_to _('Add method'), { :controller => :distribution_plugin_delivery_option, :action => "select", :session_id => @session.id },
          :class => 'session-add-delivery-option subtitle'  %>

  <%= f.submit @session.new? ? _('Create new cycle') : _('Save'), :onclick => 'saveClick = true; loadLightbox(this);' %>
  <%= link_to _('cancel changes'), @session.new? ? {:action => :index} : params %>
<% end %>

<%= javascript_include_tag '/plugins/distribution/jquery.calendrical.js' %>
<% javascript_tag do %>
  options = {isoTime: true}
  jQuery('#session_start_date, #session_start_time, #session_finish_date, #session_finish_time').calendricalDateTimeRange(options);
  jQuery('#session_delivery_start_date, #session_delivery_start_time, #session_delivery_finish_date, #session_delivery_finish_time').calendricalDateTimeRange(options);

  var saveClick = false;
  <% if @session.new? %>
    jQuery(window).bind('beforeunload', function () {
      if (!saveClick)
        jQuery.ajax({type: 'POST', async: false, url: '<%= url_for(:action => :destroy, :id => @session.id) %>'});
    });
  <% end %>
<% end %>


fix text for short post: lead instead of first paragrah

<%= error_messages_for 'blog' %>

<%= _('My Blog') %>

<%= render :file => 'shared/tiny_mce' %>

<%= required f.text_field(:name, :size => '64', :maxlength => 150, :onchange => "updateUrlField(this, 'article_slug')") %>

<%= render :partial => 'general_fields' %>

<%= hidden_field_tag 'old_article_slug', @article.slug %>

  <%= labelled_form_field( _('Address'),
        content_tag('code',
          url_for(@article.url).gsub(/#{@article.slug}$/, '') +
          text_field(:article, :slug, :onchange => "warn_value_change()", :size => 25)
        ) +
        content_tag('div',
          content_tag('strong', _('WARNING!')) + ' ' +
            _("You are about to change the address, and this will break external links to this blog or to posts inside it. Do you really want to change?") +
          content_tag('div',
            button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' +
            button_to_function(:cancel, _('No'), 'no_change()')
          ),
          :id => 'slug-change-confirmation',
          :class => 'change-confirmation',
          :style => 'display: none;'
        )
      )
  %>

<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 10)) %>

<%= labelled_form_field(_('How to display posts:'), f.select(:visualization_format, [ [ _('Full post'), 'full'], [ _('Lead'), 'short'] ])) %>

<%= labelled_form_field(_('Posts per page:'), f.select(:posts_per_page, Blog.posts_per_page_options)) %>

<%= labelled_check_box(_("List only translated posts"), 'article[display_posts_in_current_language]', '1', @article.display_posts_in_current_language?) %>

<% f.fields_for 'feed', @article.feed do |feed| %>
  <%= labelled_form_field(_('Limit of posts in RSS Feed'), feed.select(:limit, [5, 10, 20, 50])) %>
  <%= labelled_form_field(_('Include in RSS Feed only posts from language:'), feed.select(:language, [[_('All'),  nil ]] + environment.locales.map { |k,v| [v, k]})) %>
<% end %>

<% f.fields_for 'external_feed_builder', @article.external_feed do |efeed| %>

    <% enabled = @article.external_feed && @article.external_feed.enabled %>
    <% only_once = @article.external_feed ? @article.external_feed.only_once : true %>
    <%= labelled_check_box(_('Fetch posts from an external feed'), 'article[external_feed_builder][enabled]', 'true', enabled, {:onchange => "$('external-feed-options').toggle()"}) %>
    <div id='external-feed-options' style="display: <%= enabled ? 'block' : 'none' %>">
      <%= efeed.hidden_field(:id) %>
      <%= labelled_form_field( _('Feed address'), efeed.text_field(:address) ) %>

        <%= labelled_radio_button( _('Fetch posts only once'), 'article[external_feed_builder][only_once]', 'true', only_once) %>
        <%= labelled_radio_button( _('Fetch posts periodically'), 'article[external_feed_builder][only_once]', 'false', !only_once) %>

          <%= _('Feeds are updated in batches periodically. Please note that your posts will not be fetched immediately.') %>

<% end %>

<%= error_messages_for 'blog' %>

<%= _('My Blog') %>

<%= render :file => 'shared/tiny_mce' %>

<%= required f.text_field(:name, :size => '64', :maxlength => 150, :onchange => "updateUrlField(this, 'article_slug')") %>

<%= render :partial => 'general_fields' %>

<%= hidden_field_tag 'old_article_slug', @article.slug %>

  <%= labelled_form_field( _('Address'),
        content_tag('code',
          url_for(@article.url).gsub(/#{@article.slug}$/, '') +
          text_field(:article, :slug, :onchange => "warn_value_change()", :size => 25)
        ) +
        content_tag('div',
          content_tag('strong', _('WARNING!')) + ' ' +
            _("You are about to change the address, and this will break external links to this blog or to posts inside it. Do you really want to change?") +
          content_tag('div',
            button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' +
            button_to_function(:cancel, _('No'), 'no_change()')
          ),
          :id => 'slug-change-confirmation',
          :class => 'change-confirmation',
          :style => 'display: none;'
        )
      )
  %>

<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 10)) %>

<%= labelled_form_field(_('How to display posts:'), f.select(:visualization_format, [ [ _('Full post'), 'full'], [ _('First paragraph'), 'short'] ])) %>

<%= labelled_form_field(_('Posts per page:'), f.select(:posts_per_page, Blog.posts_per_page_options)) %>

<%= labelled_check_box(_("List only translated posts"), 'article[display_posts_in_current_language]', '1', @article.display_posts_in_current_language?) %>

<% f.fields_for 'feed', @article.feed do |feed| %>
  <%= labelled_form_field(_('Limit of posts in RSS Feed'), feed.select(:limit, [5, 10, 20, 50])) %>
  <%= labelled_form_field(_('Include in RSS Feed only posts from language:'), feed.select(:language, [[_('All'),  nil ]] + environment.locales.map { |k,v| [v, k]})) %>
<% end %>

<% f.fields_for 'external_feed_builder', @article.external_feed do |efeed| %>

    <% enabled = @article.external_feed && @article.external_feed.enabled %>
    <% only_once = @article.external_feed ? @article.external_feed.only_once : true %>
    <%= labelled_check_box(_('Fetch posts from an external feed'), 'article[external_feed_builder][enabled]', 'true', enabled, {:onchange => "$('external-feed-options').toggle()"}) %>
    <div id='external-feed-options' style="display: <%= enabled ? 'block' : 'none' %>">
      <%= efeed.hidden_field(:id) %>
      <%= labelled_form_field( _('Feed address'), efeed.text_field(:address) ) %>

        <%= labelled_radio_button( _('Fetch posts only once'), 'article[external_feed_builder][only_once]', 'true', only_once) %>
        <%= labelled_radio_button( _('Fetch posts periodically'), 'article[external_feed_builder][only_once]', 'false', !only_once) %>

          <%= _('Feeds are updated in batches periodically. Please note that your posts will not be fetched immediately.') %>

<% end %>


Better wording.

Better wording.

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

On this page

    FOI requests

Annotations
    <% if @is_you %>

Email subscriptions
    <% end %>

<%=@title%>

        Joined WhatDoTheyKnow in <%= year_from_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
                made no Freedom of Information requests using this site.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

                <%= @page_desc %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

            <% for result in @xapian_comments.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if @track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

On this page

    FOI requests by <%=h @display_user.name%>

Annotations by <%=h @display_user.name%>
    <% if @is_you %>

Your email subscriptions
    <% end %>

<%=@title%>

        Joined WhatDoTheyKnow in <%= year_from_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
                made no Freedom of Information requests using this site.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

                <%= @page_desc %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

            <% for result in @xapian_comments.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if @track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>


Issue 395

Issue 395

.theme == :default does not need or use Rico.Corner.

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %> <%= active_scaffold_config.theme %>-theme">

    <%= render :partial => 'list_header' %>

    <tbody class="before-header" id="<%= before_header_id -%>">

  <div id="<%= active_scaffold_content_id -%>">
    <%= render :partial => 'list' %>


Fix link to Alaveteli about in help sidebar

Help pages

<%= link_to_unless_current "About", help_about_path %>

<%= link_to "How does AsktheEU.org work?", help_about_path(:anchor => 'how') %>

<%= link_to "Who built AsktheEU.org?", help_about_path(:anchor => 'who') %>

<%= link_to_unless_current "Can I help out?", help_help_out_path %>

<%= link_to_unless_current "Request Guide", help_guide_path %>

<%= link_to "Making Requests", help_guide_path(:anchor => 'making_requests') %>

<%= link_to "Finding EU bodies", help_guide_path(:anchor => 'finding_bodies') %>

<%= link_to "Which languages?", help_guide_path(:anchor => 'languages') %>

<%= link_to "Effective request tips", help_guide_path(:anchor => 'tips') %>

<%= link_to "Responses & Appeals", help_guide_path(:anchor => 'answers_appeals') %>

<%= link_to "Request Moderation", help_guide_path(:anchor => 'request_moderation') %>

<%= link_to_unless_current "Your Right to Know", help_right_to_know_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "Information for EU Officials", help_officers_path %>

<%= link_to "What is AsktheEU.org?", help_officers_path(:anchor => 'what') %>

<%= link_to "Processing Requests", help_officers_path(:anchor => 'processing_requests') %>

<%= link_to "Privacy Issues", help_officers_path(:anchor => 'privacy_issues') %>

<%= link_to_unless_current "About the Software", help_alaveteli_path %>

<%= link_to_unless_current "Programmers API", help_api_path %>

<%= link_to_unless_current "Credits", help_credits_path %>

Contact us

If your question isn't answered here, or you just wanted to let us know
    something about the site, contact us.

Help pages

<%= link_to_unless_current "About", help_about_path %>

<%= link_to "How does AsktheEU.org work?", help_about_path(:anchor => 'how') %>

<%= link_to "Who built AsktheEU.org?", help_about_path(:anchor => 'who') %>

<%= link_to_unless_current "Can I help out?", help_help_out_path %>

<%= link_to_unless_current "Request Guide", help_guide_path %>

<%= link_to "Making Requests", help_guide_path(:anchor => 'making_requests') %>

<%= link_to "Finding EU bodies", help_guide_path(:anchor => 'finding_bodies') %>

<%= link_to "Which languages?", help_guide_path(:anchor => 'languages') %>

<%= link_to "Effective request tips", help_guide_path(:anchor => 'tips') %>

<%= link_to "Responses & Appeals", help_guide_path(:anchor => 'answers_appeals') %>

<%= link_to "Request Moderation", help_guide_path(:anchor => 'request_moderation') %>

<%= link_to_unless_current "Your Right to Know", help_right_to_know_path %>

<%= link_to_unless_current "Your privacy", help_privacy_path %>

<%= link_to_unless_current "Information for EU Officials", help_officers_path %>

<%= link_to "What is AsktheEU.org?", help_officers_path(:anchor => 'what') %>

<%= link_to "Processing Requests", help_officers_path(:anchor => 'processing_requests') %>

<%= link_to "Privacy Issues", help_officers_path(:anchor => 'privacy_issues') %>

<%= link_to_unless_current "About the Software", help_about_path %>

<%= link_to_unless_current "Programmers API", help_api_path %>

<%= link_to_unless_current "Credits", help_credits_path %>

Contact us

If your question isn't answered here, or you just wanted to let us know
    something about the site, contact us.


Use milestone permission for milestone editing, not prioritize

<%= @t.milestone.name %> [<%= @t.project.name %>]

    <%= worked_nice(@t.milestone.worked_minutes)%>
    <td id="duration-<%=@t.milestone.dom_id%>" width="1%" style="text-align:right;font-weight:bold;"><%= worked_nice(@t.milestone.duration)%>

	<% if current_user.can?(@t.project,'milestone')%>
	    <input class="date" tabindex="<%=tab+1%>" id="due-<%=@t.milestone.dom_id%>" name="due" size="8" type="text" style="font-size:11px;" value="<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>" />
	      <img alt="Calendar" class="date" id="due-<%=@t.milestone.dom_id%>-calendar" src="/images/calendar.png" title="Show Calendar"/>

        <%else%>
	<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>
        <% end %>

<%= @t.milestone.name %> [<%= @t.project.name %>]

    <%= worked_nice(@t.milestone.worked_minutes)%>
    <td id="duration-<%=@t.milestone.dom_id%>" width="1%" style="text-align:right;font-weight:bold;"><%= worked_nice(@t.milestone.duration)%>

	<% if current_user.can?(@t.project,'prioritize')%>
	    <input class="date" tabindex="<%=tab+1%>" id="due-<%=@t.milestone.dom_id%>" name="due" size="8" type="text" style="font-size:11px;" value="<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>" />
	      <img alt="Calendar" class="date" id="due-<%=@t.milestone.dom_id%>-calendar" src="/images/calendar.png" title="Show Calendar"/>

        <%else%>
	<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>
        <% end %>


Add new donor

Add new donor

        Nagore de los Ríos

        IsabelG

        Juan

        Enrique Sanchez

        IsabelG

        Jordi Torrejón

        Antoni Serra

        François Derbaix

        Irene Milleiro

        Marcos Menéndez

        blat

        Marc Garriga

        José Antonio Gallego

        Belen & Carles

        Francesco

        Amalio Espinosa

        Juan Elosua

        Josep M Cabasés

        Miguel Sala

        Aquilino Cabo

        Pascual Cano

        Pedro Moreno

        José F. Leal

        Pablo Aretxabala

        EMCubo

        Antonio Delgado

        José M. Alonso

        Lluís Guiu

        alvarod

        Marc López Plana

        Sergio

        ekonlab

        alter.lego

        Joan Subirats

        Alberto Ortiz de Zárate

        Antonio Galindo

        José Luis Marín

        Carlos

        Lostium Project

        Rosa Adela Caffarena

        Marga V.

        Álvaro Ortiz

        Stéphane M. Grueso

        Andreu Veà

        MacarenaRG

        Eva Bai

        Alfonso Romay

        kaejane

        Seb Bacon

        Carlos Iglesias

        Javier Yohn Planells

        Txe

        Antonio Maestre

        Juanlu Sánchez

        Judas

        aesedepece

        Freedonia

        dvdgmz

        María Fernández Maïssa

        jpzafra

        Kfe Innovación

        Pierre Mendiharat

        Francisco Quiroga

        Monica Garriga

        Javier Creus

        Jordi Vilas

        Jorge Bay

        Elyague

        Aitor Bediaga

        Marti Sanchez

        Mariacho

        pablobm

        Ricard Espelt

        Helen Darbishire

        Sergio Mayo

        Saul Aparicio

        Alejandro Domínguez

        _A

        josebaacha

        Daniel Laguna

        mrubio

        Kike

        Antonio

        Javier Garcia Leon

        Eduardo García

        J. Félix Ontañón

        Susana Noguero

        Berta Sureda

        Carlos Alonso

        Manuel Fernández Valdivia

        Borja Robert

        César Córcoles

        Manuel Pueyo

        Gerald Kogler

        Colbrain

        Pilar Gonzalo

        Vzy

        Raúl Cruz

        María Zarauz

        Esther Caparros

        fur alle falle

        emy

        Juan Carlos Lesmes

        Jordi Prat

        Pablo Riveiro

        Daniel Moríñigo

        Vicky Bolaños

        Guzmán

        Gabriel Rodríguez Alberich

        Inés Skotnicka

        Juan Arteaga

        efis

        Gabriel Navarro

        Kiosko.net

        garcirrey

        Enric Senabre

        Dani Díaz

        babi

        Go globalgood

        Santi Mas de Xaxàs Faus

        Mar Cabra

        Olivier

        Jordi

        Xavi Capdevila

        David Sánchez Carpio

        Nagore de los Ríos

        IsabelG

        Juan

        Enrique Sanchez

        IsabelG

        Jordi Torrejón

        Antoni Serra

        François Derbaix

        Irene Milleiro

        Marcos Menéndez

        blat

        Marc Garriga

        José Antonio Gallego

        Belen & Carles

        Francesco

        Amalio Espinosa

        Juan Elosua

        Josep M Cabasés

        Miguel Sala

        Aquilino Cabo

        Pascual Cano

        Pedro Moreno

        José F. Leal

        Pablo Aretxabala

        EMCubo

        Antonio Delgado

        José M. Alonso

        Lluís Guiu

        alvarod

        Marc López Plana

        Sergio

        ekonlab

        alter.lego

        Joan Subirats

        Alberto Ortiz de Zárate

        Antonio Galindo

        José Luis Marín

        Carlos

        Lostium Project

        Rosa Adela Caffarena

        Marga V.

        Álvaro Ortiz

        Stéphane M. Grueso

        Andreu Veà

        MacarenaRG

        Eva Bai

        Alfonso Romay

        kaejane

        Seb Bacon

        Carlos Iglesias

        Javier Yohn Planells

        Txe

        Antonio Maestre

        Juanlu Sánchez

        Judas

        aesedepece

        Freedonia

        dvdgmz

        María Fernández Maïssa

        jpzafra

        Kfe Innovación

        Pierre Mendiharat

        Francisco Quiroga

        Monica Garriga

        Javier Creus

        Jordi Vilas

        Jorge Bay

        Elyague

        Aitor Bediaga

        Marti Sanchez

        Mariacho

        pablobm

        Ricard Espelt

        Helen Darbishire

        Sergio Mayo

        Saul Aparicio

        Alejandro Domínguez

        _A

        josebaacha

        Daniel Laguna

        mrubio

        Kike

        Antonio

        Javier Garcia Leon

        Eduardo García

        J. Félix Ontañón

        Susana Noguero

        Berta Sureda

        Carlos Alonso

        Manuel Fernández Valdivia

        Borja Robert

        César Córcoles

        Manuel Pueyo

        Gerald Kogler

        Colbrain

        Pilar Gonzalo

        Vzy

        María Zarauz

        Esther Caparros

        fur alle falle

        emy

        Juan Carlos Lesmes

        Jordi Prat

        Pablo Riveiro

        Daniel Moríñigo

        Vicky Bolaños

        Guzmán

        Gabriel Rodríguez Alberich

        Inés Skotnicka

        Juan Arteaga

        efis

        Gabriel Navarro

        Kiosko.net

        garcirrey

        Enric Senabre

        Dani Díaz

        babi

        Go globalgood

        Santi Mas de Xaxàs Faus

        Mar Cabra

        Olivier

        Jordi

        Xavi Capdevila

        David Sánchez Carpio


whitespace cleanup

whitespace cleanup

git-svn-id: 23b36188e775c273874ffd4ff50a639a46560623@534 8a44537b-53f4-0310-bd54-9ec50619bb65

<%@metaform_include_assets = true
(@form_html,@form_javascript) = @record.build_html(@presentation,@current)
%>

New Record in <%= h @form.name %>

<% form_tag(Record.create_url(@form,@presentation,@current), :method => :post, :id => 'metaForm') do -%>
	<%= @form_html%>
<% end -%>
<%= javascript_tag @form_javascript%>


Link to github for source code.

Link to github for source code.

<% @title = "About" %>

Contents

Introduction

Making requests

Privacy policy

FOI officers

Credits

Contact us

If your question isn't answered here, or you just wanted to let us know
    something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond. The response
will either contain the information you want, or give a valid legal reason why
it must be kept confidential.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category of public authority to the site, we'd love
to hear from you too.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Sometimes an authority will reject your request, saying that the cost
of handling it exceeds £600 (for central government) or £450 (for all other
public authorities). At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.
.

There are other rare cases where an authority may say that they want to charge you, such as for postage
or photocopying.  Either way, don't worry, the authority cannot make a charge unless you have
specifically agreed in advance to pay it. More details from the Information Commissioner.

How quickly will I get a response? #

By law public authorities must respond "promptly", and in most cases not
later than 20 working days after receiving your request. That date
is shown on the page for your request.

You will be emailed if this date goes by without a response, so you can send
the public authority another note to remind them if they are breaking the
law.

There are some cases where the hard deadline is allowed to go beyond the 20
day period, such as if you had to clarify your request, or if they are a
school. They will normally say if they are invoking such a reason.
See 'You've calculated our deadline wrongly!' for
details about what is allowed.

Remember though, they should anyway have responded promptly.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on WhatDoTheyKnow, but we never got it by email!'
    below.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commissioner's website.

If you're requesting information from a Scottish public authority,
the process is very similar. There are differences around time
limits for compliance.
See the Scottish
Information Commissioner's guidance for details.

Can I request information about myself? #

No. Requests made using WhatDoTheyKnow are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet "How to access your information" (on the Information Commissioner's
website) explains how to do this.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

WhatDoTheyKnow is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.  You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Can I make the same to request to lots of authorities, e.g. all councils? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

WhatDoTheyKnow is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via WhatDoTheyKnow.

Privacy policy #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to. This includes the public authority that you are sending a
request to.  They only get to see an email address
@whatdotheyknow.com which is specific to that request.

If you send a message to another user on the site, then it will reveal your
email address to them. You will be told that this is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name and my request appear publicly on the site? #

We publish your request on the Internet so that anybody can read it and
make use of the information that you have found.

Your name is tangled up with your request, so has to be published as well.
It is only fair, as we're going to publish the name of the civil servant who
writes the response to your request.  Using your real name also helps people
get in touch with you to assist you with your research or to campaign with you.

By law, you must use your real name for the request to be a valid Freedom of
Information request. See the next question for alternatives if you do not want
to publish your full name.

Can I make an FOI request using a pseudonym? #

Technically, you must use your real name for your request to be a valid Freedom of Information request in law. See this
guidance from the Information Commissioner (January 2009).

However, the same guidance also says it is good practice for the public
authority to still consider a request made using an obvious pseudonym.
You should refer to this if a public authority refuses a request because you
used a pseudonym.

Be careful though, even if the authority follows this good practice, the
pseudonym will probably make it impossible for you to complain to the
Information Commissioner later about the handling of your request.

There are several good alternatives to using a pseudonym.

Use a different form of your name. The guidance says
that "Mr Arthur Thomas Roberts" can make a valid request as "Arthur Roberts",
"A. T. Roberts", or "Mr Roberts", but not as "Arthur" or "A.T.R.".

Women may use their maiden name.

In most cases, you may use any name by which you are "widely known and/or
is regularly used".

Use the name of an organisation, the name of a company, the trading name of
a company, or the trading name of a sole trader.

Ask someone else to make the request on your behalf.

You may, if you are really stuck, ask us to make the request on
your behalf. Please contact us with
a good reason why you cannot make the request yourself and cannot
ask a friend to. We don't have the resources to do this for everyone.

Please do not try to impersonate someone else.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, mark your request as "They are going to reply by post", and it will
give you an email address to use for that purpose.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

I can see a request on WhatDoTheyKnow, but we never got it by email!#

If a request appears on the site, then we have attempted to send it to
the authority by email. Any delivery failure messages will automatically
appear on the site. You can check the address we're using with the "View FOI
email address" link which appears on the page for the authority. Contact us if there is a better address we can
use.

Requests are sometimes not delivered because they are quietly removed by
"spam filters" in the IT department of the authority. Authorities can make
sure this doesn't happen by asking their IT departments to "whitelist"
any email from @whatdotheyknow.com.
If you ask us we will resend any request,
and/or give technical details of delivery so an IT department can chase
up what happened to the message.

Finally, you can respond to any request from your web browser, without
needing any email, using the "respond to request" link at the bottom of
each request page.

You've calculated our deadline wrongly!#

The Freedom of Information Act says:

A public authority must comply with section 1(1) promptly and
in any event not later than the twentieth working day following the date of
receipt.

The nerdy detail of exactly how weekends are counted, and what happens if
the request arrives out of office hours, is just that - detail. What matters
here is that the law says authorities must respond promptly.

If you've got a good reason why the request is going to take a while to
process, requesters find it really helpful if you can send a quick email with a
sentence or two saying what is happening.

FOI officers often have to do a lot of hard work to answer
requests, and this is hidden from the public. We think it would help everyone
to have more of that complexity visible.

But really, you calculated it wrong!#

Please read the answer to the previous question first. Legally, authorities
must respond promptly to FOI requests. If they fail to do that,
it is best if they show the hard work they are doing by explaining what is
taking the extra time to do.

That said, WhatDoTheyKnow does attempt to show the maximum legal deadline
for response to each request. Here is the complex detail of how we calculate
it.

If the day we deliver the request by email is a working day, we count that
as "day zero", even if it was delivered late in the evening. Days end at midnight.
We then count the next working day as "day one", and so on up to 20 days.

If the day the request email was delivered was a non-working day, we count
the next working day as "day one". Delivery is delivery, even if it happened on
the weekend. Some authorities disagree with this, our lawyer disagrees with them.

In theory, authorities can claim a time extension for applying a public
interest test. We don't think this should be a special reason for delay. There
are lots of other good reasons the authority might want more time, such as if
somebody is on holiday and they can't find the information. When
there's going to be any delay at all, we prefer it if authorities simply
apologise and explain what they are doing that is taking the extra time, rather
than resorting to legal minutiae.

Since June 2009, schools have "20 working days disregarding any working
day which is not a school day, or 60 working days, whichever is first". Basically,
cut them some slack if it is holiday time.

Requesters are encouraged to mark when they have clarified their request so
the clock resets, but sometimes they get this wrong. If you see a problem with
a particular request, let us know and we'll fix it.

If you're getting really nerdy about this, read the detailed ICO guidance. Meanwhile,
remember that the law says authorities must respond promptly.

How can I send a large file, which won't go by email?#

Instead of email, you can respond to a request directly from your web
browser, including uploading a file. To do this, choose "respond to request" at
the bottom of the request's page. Contact us if it
is too big for even that (more than, say, 50Mb).

Why do you publish the names of civil servants and the text of emails? #

We consider what officers or servants do in the course of their employment
to be public information.

Can you take down personal information about me? #

If you see any personal information about you on the site which you'd like
us to remove or hide, then please let us know,
specifying exactly what information you believe to be problematic and why, and
where it appears on the site.

If it is sensitive personal information that has been accidentally
posted, then we will usually remove it. Normally we will only consider
requests to remove personal information which come from the individual
concerned, but for sensitive information we would appreciate anyone
pointing out anything they see.

We consider for various reasons that there is a strong public interest in
retaining the names of officers or servants of public authorities. We will only
remove such names in exceptional circumstances, such as where the disclosure of
a name and position of employment would substantially risk an individual's
safety. If you are such an official and you wish to have your name removed for
such an urgent reason, you must supply us with a request to do so from your
line manager. This request must demonstrate that a risk has been perceived
which outweighs the public interest, and must demonstrate that efforts have
been made to conceal the name on the organisation's own website.

For all other requests we apply a public interest test to decide
whether information should be removed.
 Section 32
of the Data Protection Act 1998 permits us to do this, as the material we
publish is journalistic. We cannot easily edit many types of attachments (such
as PDFs, or Microsoft Word or Excel files), so we will usually ask
that authorities resend these with the personal information removed.

Do you publish email addresses or mobile phone numbers? #

We automatically remove some emails and mobile numbers from responses to requests.
Please contact us if we've missed one.
For technical reasons we don't remove them all from attachments, such as PDFs.

What is your policy on copyright of documents?#

Our Freedom of Information law is "applicant blind", so anyone in the
world can request the same document and get a copy of it.

If you think our making a document available on the internet infringes your
copyright, you may contact us and ask us
to take it down.  However, to save tax payers' money by preventing duplicate
requests, and for good public relations, we'd advise you not to do that.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    The amazing team of volunteers who run the site, answer your support
    emails, maintain the database of public authorities and so much more.
    Thanks to Tony Bowden, John Cross, Adam McGreggor, Alex Skene, Richard Taylor.

    Everyone who has helped look up FOI email addresses.

    We couldn't do any of this without those
    crazy people who volunteer,
    amongst many other things, to do the accounts and fill in our VAT return.

    Finally, all the officers and servants who have answered the many requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

You're all stars.

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a registered charity.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out FOI email addresses of authorities that we're missing.

Write a blog post about either WhatDoTheyKnow or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the
    source code
    and send us patches. It's made in Ruby on Rails.

Read more about volunteering with mySociety.


added context object to citation view. kind of hacky. in a hurry. will fix nicely later

<%= stylesheet_link_tag "citation" %>
<% @citations.each {|c| %>
  <%= c.to_spans %>

  <%= # FIXME: quick hack to show the context_object.
  %>
   <%= html_escape(c.context_object.xml) %>

<% } %>

Key:
Authors
Title
Journal
Booktitle
Editor
Volume
Publisher
Institution
Location
Number
Pages
Year
Tech
Note

Original citation string

ContextObject

<%= stylesheet_link_tag "citation" %>
<% @citations.each {|c| %>
  <%= c.to_spans %>

<% } %>

Key:
Authors
Title
Journal
Booktitle
Editor
Volume
Publisher
Institution
Location
Number
Pages
Year
Tech
Note

Original citation string


Explain "latest_*" varieties of term.

Explain "latest_*" varieties of term.

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% @include_request_link_in_authority_listing = true %>

<%= render :partial => 'localised_datepicker'  %>

<% if @query.nil? %>
    <% @title = _("Search Freedom of Information requests, public authorities and users") %>
<% elsif @total_hits == 0 %>
    <% @title = _('There were no requests matching your query.') %>
<% else %>
    <% @title = _("Results page {{page_number}}", :page_number => @page.to_s) %>
<% end%>

  <% if @query.nil? %>

Search

  <% else %>

Search results

  <% end%>

  <% if @advanced %>

<%= _('To use the advanced search, combine phrases and labels as described in the search tips below.') %>

    <% form_tag(advanced_search_url, :method => "get") do %>

         <%= text_field_tag :query, @query, { :size => 60 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
               <%= link_to _('Simple search'), search_redirect_path %>

    <% end %>

  <% else %>
    <% form_tag(request.url, {:method => "get", :id => "search_form"}) do %>

         <%= text_field_tag 'query', params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
        <%= link_to(_("Advanced search"), advanced_search_url) %>

<%= _("Showing") %>

     <% labels = [
	      ["requests", _("requests")],
        ["users", _("users")],
        ["bodies", _("authorities")],
	["all", _("everything")]]%>
     <% for variety, label in labels %>
       <% if @variety_postfix != variety %>
        <% if variety != "users" %>
         <%=  link_to label, search_url([params[:query], @common_query], variety, @sort_postfix)  %>
	<% else %>
         <%=  link_to label, search_url(params[:query], variety, @sort_postfix) %>
	<% end %>
       <% else %>
         <%= label %>
       <% end %>
       <%= "|" unless variety == labels.last[0]%>
     <% end %>

<% if false %>
<%-# Commented out for now as tags are of limited use when users can't see them.  This will change in the future! -%>
<% if @variety_postfix != "users" %>

   <%= label_tag(:query, _("Tags (separated by a space):")) %><%= text_field_tag(:tags, params[:tags], { :size => 20 }) %>
   <% for tag in InfoRequest.get_tags %>
     <%= tag.name_and_value %>
   <% end %>

<% end %>
<% end %>

<% if @variety_postfix == "requests" %>

<%= _("Restrict to") %>

     <% [["successful", _("successful requests")],
        ["unsuccessful", _("unsuccessful requests")],
        ["awaiting", _("unresolved requests")],
        ["internal_review", _("internal reviews")]].each_with_index do |item, index|
	   status, title = item %>

      <%= check_box_tag "latest_status[]", status, params[:latest_status].nil? ? false : params[:latest_status].include?(status), :id => "latest_status_#{index}" %>
      <%= label_tag("latest_status_#{index}", title) %>

    <% end %>

<%= _("Search in") %>

  <% [["sent", _("messages from users")],
     ["response", _("messages from authorities")],
     ["comment", _("comments")]].each_with_index do |item, index|
     variety, title = item %>

   <%= check_box_tag "request_variety[]", variety, params[:request_variety].nil? ? true : params[:request_variety].include?(variety), :id => "request_variety_#{index}" %>
   <%= label_tag("request_variety_#{index}", title) %>

  <% end %>

   Made between
   <%= text_field_tag(:request_date_after, params[:request_date_after], {:class => "use-datepicker", :size => 10}) %>
    and
   <%= text_field_tag(:request_date_before, params[:request_date_before], {:class => "use-datepicker", :size => 10}) %>

<% end %>

   <%= submit_tag("Filter") if @variety_postfix == "requests"%>

  <% end %>
<% end %>

  <% if !@query.nil? %>

      <%=link_to_unless @sortby == 'relevant', _("Show most relevant results first"), search_url(@query, @variety_postfix, 'relevant') %>
      |
      <%=link_to_unless @sortby == 'newest', _("Newest results first"), search_url(@query, @variety_postfix, 'newest') %>
      <% if @sortby == 'described' %>
      | <%= _('Recently described results first') %>
      <% end %>

  <% end %>

<% if @track_thing  && (@xapian_bodies_hits > 0 || @xapian_users_hits > 0 || @total_hits == 0)%>

Track this search

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>

      <% if @xapian_bodies_hits > 0 %>
          <% if @xapian_bodies_hits == 1 && @page == 1 %>

<%= _('One public authority found') %>

          <% else %>

<%= _('Public authorities {{start_count}} to {{end_count}} of {{total_count}}', :start_count => ((@page-1)*@bodies_per_page+1).to_s, :end_count => [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s, :total_count => @xapian_bodies.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_bodies.results %>
                <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] }  %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
      <% elsif @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

<%= _('No public authorities found') %>

        <% if @spelling_correction %>

<%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction, @postfix)) %>

        <% end %>

<%= _('Browse all or ask us to add one.') % [list_public_bodies_default, help_requesting_path + '#missing_body'] %>

      <% end %>

      <% if @xapian_users_hits > 0 %>
          <% if @xapian_users_hits == 1 && @page == 1 %>

<%= _("One person found") %>

          <% else %>

<%= _("People {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@users_per_page+1).to_s, :end_count =>  [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s, :total_count =>  @xapian_users.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_users.results %>
                <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
      <% end %>

      <% if @xapian_requests_hits > 0 %>
          <% if @xapian_requests_hits == 1 && @page == 1 %>

<%= _("One FOI request found") %>

          <% else %>

<%= _("FOI requests {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@requests_per_page+1).to_s, :end_count => [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s, :total_count =>  @xapian_requests.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
      <% end %>

<% end %>

<% if @advanced %>

<%= _("Advanced search tips")%>

<%= _("Enter words that you want to find separated by spaces, e.g. climbing lane") %>

<%= _('Use OR (in capital letters) where you don\'t mind which word,  e.g. commons OR lords') %>

<%= _('Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"') %>

<%= _('status: to select based on the status or historical status of the request, see the table of statuses below.', :statuses_url => "#statuses") %>

<%= _('variety: to select type of thing to search for, see the table of varieties below.', :varieties_url => "#varieties") %>

<%= _('requested_from:home_office to search requests from the Home Office, typing the name as in the URL.')%>

<%= _('requested_by:julian_todd to search requests made by Julian Todd, typing the name as in the URL.') %>

<%= _('commented_by:tony_bowden to search annotations made by Tony Bowden, typing the name as in the URL.')%>

<%= _('request: to restrict to a specific request, typing the title as in the URL.')%>

<%= _('filetype:pdf to find all responses with PDF attachments. Or try these: {{list_of_file_extensions}}', :list_of_file_extensions => IncomingMessage.get_all_file_extensions)%>

<%= _('Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.')%>

<%= _('tag:charity to find all public bodies or requests with a given tag. You can include multiple tags,
    and tag values, e.g. tag:openlylocal AND tag:financial_transaction:335633. Note that by default any of the tags
    can be present, you have to put AND explicitly if you only want results them all present.')%>

<%= _('Read about advanced search operators, such as proximity and wildcards.', :advanced_search_url => "http://www.xapian.org/docs/queryparser.html") %>

<%= _('Table of statuses') %>

<%= _("All the options below can use status or latest_status before the colon. For example, status:not_held will match requests which have ever been marked as not held; latest_status:not_held will match only requests that are currently marked as not held.") %>

<%=search_link('status:waiting_response', nil, nil, true)%>	<%= _('Waiting for the public authority to reply') %>

<%=search_link('status:not_held', nil, nil, true)%>	<%= _('The public authority does not have the information requested') %>

<%=search_link('status:rejected', nil, nil, true)%>	<%= _('The request was refused by the public authority') %>

<%=search_link('status:partially_successful', nil, nil, true)%>	<%= _('Some of the information requested has been received') %>

<%=search_link('status:successful', nil, nil, true)%>	<%= _('All of the information requested has been received') %>

<%=search_link('status:waiting_clarification', nil, nil, true)%>	<%= _('The public authority would like part of the request explained') %>

<%=search_link('status:gone_postal', nil, nil, true)%>	<%= _('The public authority would like to / has responded by post') %>

<%=search_link('status:internal_review', nil, nil, true)%>	<%= _('Waiting for the public authority to complete an internal review of their handling of the request') %>

<%=search_link('status:error_message', nil, nil, true)%>	<%= _('Received an error message, such as delivery failure.') %>

<%=search_link('status:requires_admin', nil, nil, true)%>	<%= _('A strange reponse, required attention by the {{site_name}} team', :site_name=>site_name) %>

<%=search_link('status:user_withdrawn', nil, nil, true)%>	<%= _('The requester has abandoned this request for some reason') %>

<%= _('Table of varieties') %>

<%= _("All the options below can use variety or latest_variety before the colon. For example, variety:sent will match requests which have ever been sent; latest_variety:sent will match only requests that are currently marked as sent.") %>

<%=search_link('variety:sent', nil, nil, true)%>	<%= _('Original request sent') %>

<%=search_link('variety:followup_sent', nil, nil, true)%>	<%= _('Follow up message sent by requester') %>

<%=search_link('variety:response', nil, nil, true)%>	<%= _('Response from a public authority') %>

<%=search_link('variety:comment', nil, nil, true)%>	<%= _('Annotation added to request') %>

<%=search_link('variety:authority', nil, nil, true)%>	<%= _('A public authority') %>

<%=search_link('variety:user', nil, nil, true)%>	<%= _('A {{site_name}} user', :site_name=>site_name) %>

<% end %>

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% @include_request_link_in_authority_listing = true %>

<%= render :partial => 'localised_datepicker'  %>

<% if @query.nil? %>
    <% @title = _("Search Freedom of Information requests, public authorities and users") %>
<% elsif @total_hits == 0 %>
    <% @title = _('There were no requests matching your query.') %>
<% else %>
    <% @title = _("Results page {{page_number}}", :page_number => @page.to_s) %>
<% end%>

  <% if @query.nil? %>

Search

  <% else %>

Search results

  <% end%>

  <% if @advanced %>

<%= _('To use the advanced search, combine phrases and labels as described in the search tips below.') %>

    <% form_tag(advanced_search_url, :method => "get") do %>

         <%= text_field_tag :query, @query, { :size => 60 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
               <%= link_to _('Simple search'), search_redirect_path %>

    <% end %>

  <% else %>
    <% form_tag(request.url, {:method => "get", :id => "search_form"}) do %>

         <%= text_field_tag 'query', params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
        <%= link_to(_("Advanced search"), advanced_search_url) %>

<%= _("Showing") %>

     <% labels = [
	      ["requests", _("requests")],
        ["users", _("users")],
        ["bodies", _("authorities")],
	["all", _("everything")]]%>
     <% for variety, label in labels %>
       <% if @variety_postfix != variety %>
        <% if variety != "users" %>
         <%=  link_to label, search_url([params[:query], @common_query], variety, @sort_postfix)  %>
	<% else %>
         <%=  link_to label, search_url(params[:query], variety, @sort_postfix) %>
	<% end %>
       <% else %>
         <%= label %>
       <% end %>
       <%= "|" unless variety == labels.last[0]%>
     <% end %>

<% if false %>
<%-# Commented out for now as tags are of limited use when users can't see them.  This will change in the future! -%>
<% if @variety_postfix != "users" %>

   <%= label_tag(:query, _("Tags (separated by a space):")) %><%= text_field_tag(:tags, params[:tags], { :size => 20 }) %>
   <% for tag in InfoRequest.get_tags %>
     <%= tag.name_and_value %>
   <% end %>

<% end %>
<% end %>

<% if @variety_postfix == "requests" %>

<%= _("Restrict to") %>

     <% [["successful", _("successful requests")],
        ["unsuccessful", _("unsuccessful requests")],
        ["awaiting", _("unresolved requests")],
        ["internal_review", _("internal reviews")]].each_with_index do |item, index|
	   status, title = item %>

      <%= check_box_tag "latest_status[]", status, params[:latest_status].nil? ? false : params[:latest_status].include?(status), :id => "latest_status_#{index}" %>
      <%= label_tag("latest_status_#{index}", title) %>

    <% end %>

<%= _("Search in") %>

  <% [["sent", _("messages from users")],
     ["response", _("messages from authorities")],
     ["comment", _("comments")]].each_with_index do |item, index|
     variety, title = item %>

   <%= check_box_tag "request_variety[]", variety, params[:request_variety].nil? ? true : params[:request_variety].include?(variety), :id => "request_variety_#{index}" %>
   <%= label_tag("request_variety_#{index}", title) %>

  <% end %>

   Made between
   <%= text_field_tag(:request_date_after, params[:request_date_after], {:class => "use-datepicker", :size => 10}) %>
    and
   <%= text_field_tag(:request_date_before, params[:request_date_before], {:class => "use-datepicker", :size => 10}) %>

<% end %>

   <%= submit_tag("Filter") if @variety_postfix == "requests"%>

  <% end %>
<% end %>

  <% if !@query.nil? %>

      <%=link_to_unless @sortby == 'relevant', _("Show most relevant results first"), search_url(@query, @variety_postfix, 'relevant') %>
      |
      <%=link_to_unless @sortby == 'newest', _("Newest results first"), search_url(@query, @variety_postfix, 'newest') %>
      <% if @sortby == 'described' %>
      | <%= _('Recently described results first') %>
      <% end %>

  <% end %>

<% if @track_thing  && (@xapian_bodies_hits > 0 || @xapian_users_hits > 0 || @total_hits == 0)%>

Track this search

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>

      <% if @xapian_bodies_hits > 0 %>
          <% if @xapian_bodies_hits == 1 && @page == 1 %>

<%= _('One public authority found') %>

          <% else %>

<%= _('Public authorities {{start_count}} to {{end_count}} of {{total_count}}', :start_count => ((@page-1)*@bodies_per_page+1).to_s, :end_count => [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s, :total_count => @xapian_bodies.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_bodies.results %>
                <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] }  %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
      <% elsif @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

<%= _('No public authorities found') %>

        <% if @spelling_correction %>

<%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction, @postfix)) %>

        <% end %>

<%= _('Browse all or ask us to add one.') % [list_public_bodies_default, help_requesting_path + '#missing_body'] %>

      <% end %>

      <% if @xapian_users_hits > 0 %>
          <% if @xapian_users_hits == 1 && @page == 1 %>

<%= _("One person found") %>

          <% else %>

<%= _("People {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@users_per_page+1).to_s, :end_count =>  [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s, :total_count =>  @xapian_users.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_users.results %>
                <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
      <% end %>

      <% if @xapian_requests_hits > 0 %>
          <% if @xapian_requests_hits == 1 && @page == 1 %>

<%= _("One FOI request found") %>

          <% else %>

<%= _("FOI requests {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@requests_per_page+1).to_s, :end_count => [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s, :total_count =>  @xapian_requests.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
      <% end %>

<% end %>

<% if @advanced %>

<%= _("Advanced search tips")%>

<%= _("Enter words that you want to find separated by spaces, e.g. climbing lane") %>

<%= _('Use OR (in capital letters) where you don\'t mind which word,  e.g. commons OR lords') %>

<%= _('Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"') %>

<%= _('status: to select based on the status or historical status of the request, see the table of statuses below.', :statuses_url => "#statuses") %>

<%= _('variety: to select type of thing to search for, see the table of varieties below.', :varieties_url => "#varieties") %>

<%= _('requested_from:home_office to search requests from the Home Office, typing the name as in the URL.')%>

<%= _('requested_by:julian_todd to search requests made by Julian Todd, typing the name as in the URL.') %>

<%= _('commented_by:tony_bowden to search annotations made by Tony Bowden, typing the name as in the URL.')%>

<%= _('request: to restrict to a specific request, typing the title as in the URL.')%>

<%= _('filetype:pdf to find all responses with PDF attachments. Or try these: {{list_of_file_extensions}}', :list_of_file_extensions => IncomingMessage.get_all_file_extensions)%>

<%= _('Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.')%>

<%= _('tag:charity to find all public bodies or requests with a given tag. You can include multiple tags,
    and tag values, e.g. tag:openlylocal AND tag:financial_transaction:335633. Note that by default any of the tags
    can be present, you have to put AND explicitly if you only want results them all present.')%>

<%= _('Read about advanced search operators, such as proximity and wildcards.', :advanced_search_url => "http://www.xapian.org/docs/queryparser.html") %>

<%= _('Table of statuses') %>

<%=search_link('status:waiting_response', nil, nil, true)%>	<%= _('Waiting for the public authority to reply') %>

<%=search_link('status:not_held', nil, nil, true)%>	<%= _('The public authority does not have the information requested') %>

<%=search_link('status:rejected', nil, nil, true)%>	<%= _('The request was refused by the public authority') %>

<%=search_link('status:partially_successful', nil, nil, true)%>	<%= _('Some of the information requested has been received') %>

<%=search_link('status:successful', nil, nil, true)%>	<%= _('All of the information requested has been received') %>

<%=search_link('status:waiting_clarification', nil, nil, true)%>	<%= _('The public authority would like part of the request explained') %>

<%=search_link('status:gone_postal', nil, nil, true)%>	<%= _('The public authority would like to / has responded by post') %>

<%=search_link('status:internal_review', nil, nil, true)%>	<%= _('Waiting for the public authority to complete an internal review of their handling of the request') %>

<%=search_link('status:error_message', nil, nil, true)%>	<%= _('Received an error message, such as delivery failure.') %>

<%=search_link('status:requires_admin', nil, nil, true)%>	<%= _('A strange reponse, required attention by the {{site_name}} team', :site_name=>site_name) %>

<%=search_link('status:user_withdrawn', nil, nil, true)%>	<%= _('The requester has abandoned this request for some reason') %>

<%= _('Table of varieties') %>

<%=search_link('variety:sent', nil, nil, true)%>	<%= _('Original request sent') %>

<%=search_link('variety:followup_sent', nil, nil, true)%>	<%= _('Follow up message sent by requester') %>

<%=search_link('variety:response', nil, nil, true)%>	<%= _('Response from a public authority') %>

<%=search_link('variety:comment', nil, nil, true)%>	<%= _('Annotation added to request') %>

<%=search_link('variety:authority', nil, nil, true)%>	<%= _('A public authority') %>

<%=search_link('variety:user', nil, nil, true)%>	<%= _('A {{site_name}} user', :site_name=>site_name) %>

<% end %>


Don'tt abort rake when rendering the _trace.rhtml template

git-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@3839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de

<%
  traces = [
    ["Application Trace", @exception.application_backtrace],
    ["Framework Trace", @exception.framework_backtrace],
    ["Full Trace", @exception.clean_backtrace]
  ]
  names = traces.collect {|name, trace| name}
%>

RAILS_ROOT: <%= defined?(RAILS_ROOT) ? RAILS_ROOT : "unset" %>

  <% names.each do |name| -%>
    <%
      show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';"
      hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"}
    %>
    <a href="#" onclick="<%= hide %><%= show %>; return false;"><%= name %> <%= '|' unless names.last == name %>
  <% end -%>

  <% traces.each do |name, trace| -%>
    <div id="<%= name.gsub /\s/, '-' %>" style="display: <%= name == "Application Trace" ? 'block' : 'none' %>;">

<%= trace.join "\n" %>

  <% end -%>

<%
  traces = [
    ["Application Trace", @exception.application_backtrace],
    ["Framework Trace", @exception.framework_backtrace],
    ["Full Trace", @exception.clean_backtrace]
  ]
  names = traces.collect {|name, trace| name}
%>

RAILS_ROOT: <%= RAILS_ROOT %>

  <% names.each do |name| -%>
    <%
      show = "document.getElementById('#{name.gsub /\s/, '-'}').style.display='block';"
      hide = (names - [name]).collect {|hide_name| "document.getElementById('#{hide_name.gsub /\s/, '-'}').style.display='none';"}
    %>
    <a href="#" onclick="<%= hide %><%= show %>; return false;"><%= name %> <%= '|' unless names.last == name %>
  <% end -%>

  <% traces.each do |name, trace| -%>
    <div id="<%= name.gsub /\s/, '-' %>" style="display: <%= name == "Application Trace" ? 'block' : 'none' %>;">

<%= trace.join "\n" %>

  <% end -%>


Un-break static sidebars

Un-break static sidebars

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1096 820eb932-12ee-0310-9ca8-eeb645f39767

<%= @sb_config['title'] %>

<%= @sb_config['body'] %>

<%= @sb_config['title'] %>

<%=h @sb_config['body'] %>