(#1567) made the forms list be a result of looking through all profiles passed, instead of using the event group's forms

<% if !@processor_list.empty? %>

<% show_form_header = (@eg.forms.find_all_by_hidden(false).size > 1) %>

<% forms = @processor_list.collect{ |p|
              if p.appln && p.appln.form
	        p.appln.form
              else
	        nil
              end
           }.compact.uniq
%>

<% for form in forms %>
  <%= render :partial => 'processor_pile_for_form', :locals => { :form => form,
        :show_form_header => show_form_header } %>
<% end %>

<% end %>

<% if !@processor_list.empty? %>

<% show_form_header = (@eg.forms.find_all_by_hidden(false).size > 1) %>
<% for form in @eg.forms.find_all_by_hidden(false) %>
  <%= render :partial => 'processor_pile_for_form', :locals => { :form => form,
        :show_form_header => show_form_header } %>
<% end %>

<% end %>


rolling back my change to allow the removal of the last association in a subform. i'm stumped. going to open an issue ticket.

git-svn-id: b2ff2946fad280430023ee7ead77858f96a610fa@587 561dde7e-7729-0410-be8e-ef83869d6c7d

<%
parent_record = @record
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name)
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)

show_blank_record = (column.plural_association? or (column.singular_association? and associated.empty?))
show_blank_record = false if column.through_association?
show_blank_record = false unless column.association.klass.authorized_for?(:action => :create)

-%>

<%= column.label -%> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)

<div <%= 'style="display: none;"' if column.collapsed -%>>

  <% @record = column.association.klass.new -%>
  <%= render :partial => 'form_association_header', :locals => {:parent_record => parent_record} %>

  <tbody id="<%= sub_form_list_id(:association => column.name) %>">
    <% associated.each_index do |index| %>
    <% @record = associated[index] -%>
    <% if @record.errors.count -%>

      <td colspan="<%= active_scaffold_config_for(@record.class).subform.columns.length + 1 %>">
        <%= error_messages_for :record %>

    <% end %>
    <tr class="association-record <%= 'association-record-new' if @record.new_record? -%>">
      <% scope = column.plural_association? ? "[#{column.name}][#{@record.id || generate_temporary_id}]" : "[#{column.name}]" -%>
      <%= render :partial => 'form_association_record', :locals => {:scope => scope, :parent_record => parent_record} %>

    <% end -%>

    <% if show_blank_record -%>
    <% @record = column.association.klass.new -%>

      <% scope = column.plural_association? ? "[#{column.name}][#{generate_temporary_id}]" : "[#{column.name}]" -%>
      <%= render :partial => 'form_association_record', :locals => {:scope => scope, :parent_record => parent_record} %>

    <% end -%>

<%= render :partial => 'form_association_footer', :locals => {:parent_record => parent_record, :column => column, :associated => associated} -%>

<% @record = parent_record -%>

<%
parent_record = @record
associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name)
associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order)

show_blank_record = (column.plural_association? or (column.singular_association? and associated.empty?))
show_blank_record = false if column.through_association?
show_blank_record = false unless column.association.klass.authorized_for?(:action => :create)

-%>

<%= column.label -%> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)

<div <%= 'style="display: none;"' if column.collapsed -%>>
<%= hidden_field_tag "record[#{column.name}]" %>

  <% @record = column.association.klass.new -%>
  <%= render :partial => 'form_association_header', :locals => {:parent_record => parent_record} %>

  <tbody id="<%= sub_form_list_id(:association => column.name) %>">
    <% associated.each_index do |index| %>
    <% @record = associated[index] -%>
    <% if @record.errors.count -%>

      <td colspan="<%= active_scaffold_config_for(@record.class).subform.columns.length + 1 %>">
        <%= error_messages_for :record %>

    <% end %>
    <tr class="association-record <%= 'association-record-new' if @record.new_record? -%>">
      <% scope = column.plural_association? ? "[#{column.name}][#{@record.id || generate_temporary_id}]" : "[#{column.name}]" -%>
      <%= render :partial => 'form_association_record', :locals => {:scope => scope, :parent_record => parent_record} %>

    <% end -%>

    <% if show_blank_record -%>
    <% @record = column.association.klass.new -%>

      <% scope = column.plural_association? ? "[#{column.name}][#{generate_temporary_id}]" : "[#{column.name}]" -%>
      <%= render :partial => 'form_association_record', :locals => {:scope => scope, :parent_record => parent_record} %>

    <% end -%>

<%= render :partial => 'form_association_footer', :locals => {:parent_record => parent_record, :column => column, :associated => associated} -%>

<% @record = parent_record -%>


link to html history

link to html history

<% if obj.visible %>
<%= render :partial => 'map', :locals => { :type => type, :id => obj.id } %>
<% else %>
Deleted
<% end %>

<% if obj.visible %>

<%= link_to h("API"), :controller => type, :action => "read", :id => obj.id %>

<% end %>

<%= link_to h("History"), :controller => "old_" + type, :action => "history", :id => obj.id %>
    (<%= link_to h("HTML"), :action => type+"_history", :id => obj.id %>)

<%= render :partial => 'common_editedby', :locals => { :obj => obj } %>

<% if obj.visible %>
<%= render :partial => 'map', :locals => { :type => type, :id => obj.id } %>
<% else %>
Deleted
<% end %>

<% if obj.visible %>

<%= link_to h("API"), :controller => type, :action => "read", :id => obj.id %>

<% end %>

<%= link_to h("History"), :controller => "old_" + type, :action => "history", :id => obj.id %>

<%= render :partial => 'common_editedby', :locals => { :obj => obj } %>


We display these stats in the base project, we may as well display them in this theme

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

<%=@info_request_count%> requests, <%=@outgoing_message_count%> outgoing messages,
    <%=@incoming_message_count%> incoming messages

<%=@user_count%> users, <%=@track_thing_count%> tracked things

<%=@comment_count%> annotations

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, public_body_admin_url(@blank_contact))%>
                  <%= link_to h(@blank_contact.name), main_url(public_body_url(@blank_contact)) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, request_admin_url(@request)) %>
                    <%= link_to(@request.title, main_url(request_link(@request))) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>

<% @title = "Summary" %>

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to(@request.title, main_url(request_url(@request))) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, public_body_admin_url(@blank_contact))%>
                  <%= link_to h(@blank_contact.name), main_url(public_body_url(@blank_contact)) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, request_admin_url(@request)) %>
                    <%= link_to(@request.title, main_url(request_link(@request))) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>


Use relative paths

Use relative paths

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

        <%=@info_request_count%> requests, <%=@outgoing_message_count%> outgoing messages,
        <%=@incoming_message_count%> incoming messages

<%=@user_count%> users, <%=@track_thing_count%> tracked things

<%=@comment_count%> annotations

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, admin_request_show_path(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= link_to(''.html_safe, admin_request_show_path(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= link_to(''.html_safe, admin_request_show_path(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, admin_body_show_path(@blank_contact))%>
                  <%= link_to h(@blank_contact.name), public_body_path(@blank_contact) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, admin_request_show_path(@request)) %>
                    <%= link_to(@request.title, request_link(@request)) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

        <%=@info_request_count%> requests, <%=@outgoing_message_count%> outgoing messages,
        <%=@incoming_message_count%> incoming messages

<%=@user_count%> users, <%=@track_thing_count%> tracked things

<%=@comment_count%> annotations

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, admin_request_show_url(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= link_to(''.html_safe, admin_request_show_url(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= link_to(''.html_safe, admin_request_show_url(@request))%>
                  <%= link_to(@request.title, request_path(@request)) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, admin_body_show_path(@blank_contact))%>
                  <%= link_to h(@blank_contact.name), public_body_url(@blank_contact) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, admin_request_show_url(@request)) %>
                    <%= link_to(@request.title, request_link(@request)) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>


qfix

qfix

git-svn-id: 47f3e90b35476776f3491e9667105825572c66a1@33 a23ba2f0-501e-4c28-b130-3ad736a215ff

<% for column in eval(class_name).content_columns %>

    <%= column.human_name %>: <%=h object.send(column.name) %>

<% end %>

<% get_associations(class_name).each do |association| %>
<% if object.send(association.name).size > 0 %>

<%= association.name.to_s.humanize %>

    <% for c in object.send(association.name) %>

        <%= link_to( c.display_name, :controller => association.name.to_s.pluralize, :action => 'show', :id => c.id) %>

    <% end %>

<% end %>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => object %> |
<%= link_to 'Back', :action => 'list' %>

<% for column in eval(class_name).content_columns %>

    <%= column.human_name %>: <%=h object.send(column.name) %>

<% end %>

<% get_associations(class_name).each do |association| %>

<%= association.name.to_s.humanize %>

    <% for c in object.send(association.name) %>

        <%= link_to( c.display_name, :controller => association.name.to_s.pluralize, :action => 'show', :id => c.id) %>

    <% end %>

<% end %>

<%= link_to 'Edit', :action => 'edit', :id => object %> |
<%= link_to 'Back', :action => 'list' %>


Clearer wording.

Clearer wording.

<% @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, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
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 that they are breaking the law.

Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

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 question '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.

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 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.

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, and for us to
block them when that happens.

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.

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 on the site which you'd like us to remove or hide,
then please let us know. We do not always remove it. In some
cases it will be in the public interest for the information to stay.

    Section 32 of the Data Protection Act 1998 permits us to do this, as the material
we publish is journalistic.

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 documents with commercial copyright?#

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.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally 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.

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.

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.

<% @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, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
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 that they are breaking the law.

Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

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 will have reached 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 question '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.

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 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.

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, and for us to
block them when that happens.

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.

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 on the site which you'd like us to remove or hide,
then please let us know. We do not always remove it. In some
cases it will be in the public interest for the information to stay.

    Section 32 of the Data Protection Act 1998 permits us to do this, as the material
we publish is journalistic.

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 documents with commercial copyright?#

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.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally 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.

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.

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 content for

added content for

<%content_for("left") do -%>

New person

<% form_tag :action => 'create' do %>
  <%= render :partial => 'form' %>
  <%= submit_tag "Create" %>
<% end %>

<%= link_to 'Back', :action => 'list' %>
<%end-%>
<%content_for("right") do -%>
<%end-%>


Change apply to submit button

Change apply to submit button

<% html_title(l(:charts_menu_label)) -%>

<% content_for :header_tags do %>
  <%= javascript_include_tag '/plugin_assets/open_flash_chart/javascripts/swfobject.js' %>
  <%= javascript_include_tag '/plugin_assets/redmine_charts/javascripts/charts.js' %>
<% end %>

<% content_for :sidebar do %>

<%= l(:charts_menu_label) %>

  <%= show_charts_menu %>

  <% unless @saved_conditions.empty? %>

<%= l(:charts_saved_conditions_label) %>

    <% @saved_conditions.each do |saved_condition| %>
      <%= link_to(saved_condition.name, "#{url_for(:controller => "charts_#{saved_condition.chart}".to_sym, :project_id => @project)}?#{saved_condition.conditions}&saved_condition_id=#{saved_condition.id}") %>

    <% end %>
  <% end %>
<% end %>

  <% if @saved_condition && User.current.allowed_to?(:save_charts, @project, :global => true) %>
	<%= link_to l(:button_delete_condition), {:action => 'destroy_saved_condition', :project_id => @project, :id => @saved_condition.id}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
  <% end %>

<%= @title %><%= " - #{@saved_condition.name}" if @saved_condition %>

<% form_tag '#', :method => :get, :id => 'chart_form' do %>

  <%= hidden_field_tag :page, @page %>
  <%= hidden_field_tag :project_id, @project.id %>
  <%= hidden_field_tag :saved_condition_id, @saved_condition ? @saved_condition.id : nil %>
  <%= hidden_field_tag :chart_form_action, "", :id => "chart_form_action" %>

    <% if @help %>

<%= @help %>

    <% end %>

    <fieldset id="filters" class="collapsible">
      <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= render :partial => 'charts/filters' %>

    </fieldset>

    <%= submit_tag l(:button_apply), :class => 'button-small', :onclick => "$('chart_form_action').value = ''; $('page') = '1'; $('chart_form').submit(); return false;" %>

    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload' %>

    <% if User.current.allowed_to?(:save_charts, @project, :global => true) %>
      <% if @saved_condition %>
        <%= link_to l(:button_save_condition), {}, :onclick => "$('saved_condition_create').hide(); $('saved_condition_update').show(); return false;", :class => 'icon icon-save' %>
        <%= link_to l(:button_save_condition_as_new), {}, :onclick => "$('saved_condition_update').hide(); $('saved_condition_create').show(); return false;", :class => 'icon icon-save' %>
      <% else %>
        <%= link_to l(:button_save_condition), {}, :onclick => "$('saved_condition_create').show(); return false;", :class => 'icon icon-save' %>
      <% end %>
    <% end %>

  <% if User.current.allowed_to?(:save_charts, @project, :global => true) %>
    <%= render :partial => 'charts/saved_conditions' %>
  <% end %>

  <% unless @error %>
    <%= show_graph(@data) %>

    <% if @show_pages %>

        <%= show_pages(@page, @pages) %>

    <% end %>

    <% if @date_condition %>

        <%= show_date_condition(@range[:limit], @range[:range], @range[:offset]) %>

    <% end %>

  <% end %>

<% end %>

<% html_title(l(:charts_menu_label)) -%>

<% content_for :header_tags do %>
  <%= javascript_include_tag '/plugin_assets/open_flash_chart/javascripts/swfobject.js' %>
  <%= javascript_include_tag '/plugin_assets/redmine_charts/javascripts/charts.js' %>
<% end %>

<% content_for :sidebar do %>

<%= l(:charts_menu_label) %>

  <%= show_charts_menu %>

  <% unless @saved_conditions.empty? %>

<%= l(:charts_saved_conditions_label) %>

    <% @saved_conditions.each do |saved_condition| %>
      <%= link_to(saved_condition.name, "#{url_for(:controller => "charts_#{saved_condition.chart}".to_sym, :project_id => @project)}?#{saved_condition.conditions}&saved_condition_id=#{saved_condition.id}") %>

    <% end %>
  <% end %>
<% end %>

  <% if @saved_condition && User.current.allowed_to?(:save_charts, @project, :global => true) %>
	<%= link_to l(:button_delete_condition), {:action => 'destroy_saved_condition', :project_id => @project, :id => @saved_condition.id}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
  <% end %>

<%= @title %><%= " - #{@saved_condition.name}" if @saved_condition %>

<% form_tag '#', :method => :get, :id => 'chart_form' do %>

  <%= hidden_field_tag :page, @page %>
  <%= hidden_field_tag :project_id, @project.id %>
  <%= hidden_field_tag :saved_condition_id, @saved_condition ? @saved_condition.id : nil %>
  <%= hidden_field_tag :chart_form_action, "", :id => "chart_form_action" %>

    <% if @help %>

<%= @help %>

    <% end %>

    <fieldset id="filters" class="collapsible">
      <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= render :partial => 'charts/filters' %>

    </fieldset>

    <%= link_to l(:button_apply), {}, :onclick => "$('chart_form_action').value = ''; $('page') = '1'; $('chart_form').submit(); return false;", :class => 'icon icon-checked' %>

    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload' %>

    <% if User.current.allowed_to?(:save_charts, @project, :global => true) %>
      <% if @saved_condition %>
        <%= link_to l(:button_save_condition), {}, :onclick => "$('saved_condition_create').hide(); $('saved_condition_update').show(); return false;", :class => 'icon icon-save' %>
        <%= link_to l(:button_save_condition_as_new), {}, :onclick => "$('saved_condition_update').hide(); $('saved_condition_create').show(); return false;", :class => 'icon icon-save' %>
      <% else %>
        <%= link_to l(:button_save_condition), {}, :onclick => "$('saved_condition_create').show(); return false;", :class => 'icon icon-save' %>
      <% end %>
    <% end %>

  <% if User.current.allowed_to?(:save_charts, @project, :global => true) %>
    <%= render :partial => 'charts/saved_conditions' %>
  <% end %>

  <% unless @error %>
    <%= show_graph(@data) %>

    <% if @show_pages %>

        <%= show_pages(@page, @pages) %>

    <% end %>

    <% if @date_condition %>

        <%= show_date_condition(@range[:limit], @range[:range], @range[:offset]) %>

    <% end %>

  <% end %>

<% end %>


fixing timezone issue for events indexc calendar

git-svn-id: 295275ead0c997ff8920a9abe88dec0903829be9@425 9c008b19-a030-0410-9975-d76d301b4276

  <%= render :partial => 'events/new' %>

<%=
calendar({:year => @date.year, :month => @date.month}) do |d|
  cell_text = "#{d.mday}"
  if (d.to_date == TzTime.now.to_date)
    cell_text = "Today #{d.mday}"
  end
  cell_attrs = {:class => 'day'}
  @events.each do |e|
    if e.date.to_date == d
      cell_text << "
#{ link_to h(e.title), event_path(e) }
"
      cell_attrs[:class] = 'specialDay'
    end
  end
  [cell_text, cell_attrs]
end
%>

<% if !@events.blank? %>

        Events
        Date

      <% for event in @events %>

          <%= icon_for(event) %>

            <%= link_to h(event.title), event_path(event) %> by <%=h event.user.login %>

          <%=tz event.date %>

      <% end %>

<% end %>

  <%= render :partial => 'events/new' %>

<%=
calendar({:year => @date.year, :month => @date.month}) do |d|
  cell_text = "#{d.mday}"
  if (d.to_date == Date.today)
    cell_text = "Today #{d.mday}"
  end
  cell_attrs = {:class => 'day'}
  @events.each do |e|
    if e.date.to_date == d
      cell_text << "
#{ link_to h(e.title), event_path(e) }
"
      cell_attrs[:class] = 'specialDay'
    end
  end
  [cell_text, cell_attrs]
end
%>

<% if !@events.blank? %>

        Events
        Date

      <% for event in @events %>

          <%= icon_for(event) %>

            <%= link_to h(event.title), event_path(event) %> by <%=h event.user.login %>

          <%=tz event.date %>

      <% end %>

<% end %>


Maybe clearer wording

Maybe clearer wording

<% @title = h(@info_request.title) %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

Track this request

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

Act on what you've learnt

        <%= link_to '', "http://www.writetothem.com"%>
        <%= link_to 'Write to your politician', "http://www.writetothem.com"%>

        <%= link_to '', "http://www.pledgebank.com"%>
        <%= link_to 'Join others with a pledge', "http://www.pledgebank.com"%>

    <% if @xapian_similar.results.size > 0 %>

Similar requests

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

<%= link_to "More similar requests", request_similar_url(@info_request) %>

        <% end %>
     <% end %>

<%=@title%>

<%=h @info_request.law_used_with_a%> to
    <%= public_body_link(@info_request.public_body) %>
    by
    <%= user_link(@info_request.user) %>
    <% if !@user.nil? && @user.admin_page_links? %>
    (<%= link_to "admin", request_admin_url(@info_request) %>)
    <% end %>

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        they <%= link_to "must respond", about_url + "#quickly_response" %>
        promptly but no later than <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. By law,
        the response had to be
        <%= link_to "no later", about_url + "#quickly_response" %>
        than <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
    <% end %>

Add an annotation

        Annotations will be posted publically here, and are
        not sent to the authority.

        Help the requester with their request.

        <% if [ 'waiting_clarification' ].include?(@info_request.described_state) %>

 Advise on how to best clarify the request.

        <% end %>

        <% if @info_request.awaiting_description %>
        <% end %>

        <% if not [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Link to the information requested, if it is already available on the Internet.

 Suggest where else the requester might find the information.

 Offer better ways of wording the request to get the information.

        <% end %>

        <% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Summarise the content of any information returned.

 Say how you've used the information, with links if possible.

 Thank the public authority or <%=h @info_request.user.name %>.

        <% end %>
        <% if [ 'partially_successful' ].include?(@info_request.described_state) %>

 Suggest how the requester can find the rest of the information.

        <% end %>
        <% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Point to related information, campaigns or forums which may be useful.

        <% end %>

        <% if [ 'not_held' ].include?(@info_request.described_state) %>

 Ideas on what other documents to request which the authority may hold.

        <% end %>
        <% if [ 'rejected' ].include?(@info_request.described_state) %>

 Advise on whether the rejection is legal, and how to complain about if not.

        <% end %>

        <% if [ 'requires_admin' ].include?(@info_request.described_state) %>

 Your thoughts on what the WhatDoTheyKnow administrators should do about the request.

        <% end %>

        <%= render :partial => 'comment/comment_form', :locals => { :track_thing => @track_thing } %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

<% end %>

<% @title = h(@info_request.title) %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

Track this request

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

Act on what you've learnt

        <%= link_to '', "http://www.writetothem.com"%>
        <%= link_to 'Write to your politician', "http://www.writetothem.com"%>

        <%= link_to '', "http://www.pledgebank.com"%>
        <%= link_to 'Join others with a pledge', "http://www.pledgebank.com"%>

    <% if @xapian_similar.results.size > 0 %>

Similar requests

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

<%= link_to "More similar requests", request_similar_url(@info_request) %>

        <% end %>
     <% end %>

<%=@title%>

<%=h @info_request.law_used_with_a%> to
    <%= public_body_link(@info_request.public_body) %>
    by
    <%= user_link(@info_request.user) %>
    <% if !@user.nil? && @user.admin_page_links? %>
    (<%= link_to "admin", request_admin_url(@info_request) %>)
    <% end %>

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        they <%= link_to "must respond", about_url + "#quickly_response" %>
        promptly but no later than <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. By law,
        the response had to be
        <%= link_to "no later", about_url + "#quickly_response" %>
        than <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
    <% end %>

Add an annotation

        Help the requester with their request. Things you can do:

        <% if [ 'waiting_clarification' ].include?(@info_request.described_state) %>

 Advise on how to best clarify the request.

        <% end %>

        <% if @info_request.awaiting_description %>
        <% end %>

        <% if not [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Link to the information requested, if it is already available on the Internet.

 Suggest where else the requester might find the information.

 Offer better ways of wording the request to get the information.

        <% end %>

        <% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Summarise the content of any information returned.

 Say how you've used the information, with links if possible.

 Thank the public authority or <%=h @info_request.user.name %>.

        <% end %>
        <% if [ 'partially_successful' ].include?(@info_request.described_state) %>

 Suggest how the requester can find the rest of the information.

        <% end %>
        <% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Point to related information, campaigns or forums which may be useful.

        <% end %>

        <% if [ 'not_held' ].include?(@info_request.described_state) %>

 Ideas on what other documents to request which the authority may hold.

        <% end %>
        <% if [ 'rejected' ].include?(@info_request.described_state) %>

 Advise on whether the rejection is legal, and how to complain about if not.

        <% end %>

        <% if [ 'requires_admin' ].include?(@info_request.described_state) %>

 Your thoughts on what the WhatDoTheyKnow administrators should do about the request.

        <% end %>

        <%= render :partial => 'comment/comment_form', :locals => { :track_thing => @track_thing } %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

<% end %>


Short URL now on https

Short URL now on https

<!DOCTYPE html>

		<meta charset="utf-8">
		<link rel="alternate" type="application/rss+xml" title="EMRL Work Timeline Feed" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d">
		<link href="https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic,300,300italic' rel='stylesheet" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
		<link rel="alternate" type="application/rss+xml" title="RSS" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d" />
		<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
		<link rel="apple-touch-icon" sizes="57x57" href="/assets/img/apple-touch-icon-57x57.png">
		<link rel="apple-touch-icon" sizes="60x60" href="/assets/img/apple-touch-icon-60x60.png">
		<link rel="apple-touch-icon" sizes="72x72" href="/assets/img/apple-touch-icon-72x72.png">
		<link rel="apple-touch-icon" sizes="76x76" href="/assets/img/apple-touch-icon-76x76.png">
		<link rel="apple-touch-icon" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
		<link rel="apple-touch-icon" sizes="120x120" href="/assets/img/apple-touch-icon-120x120.png">
		<link rel="apple-touch-icon" sizes="144x144" href="/assets/img/apple-touch-icon-144x144.png">
		<link rel="apple-touch-icon" sizes="152x152" href="/assets/img/apple-touch-icon-152x152.png">
		<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon-180x180.png">
		<link rel="icon" type="image/png" href="/assets/img/favicon-16x16.png" sizes="16x16">
		<link rel="icon" type="image/png" href="/assets/img/favicon-32x32.png" sizes="32x32">
		<link rel="icon" type="image/png" href="/assets/img/favicon-96x96.png" sizes="96x96">
		<link rel="icon" type="image/png" href="/assets/img/android-chrome-192x192.png" sizes="192x192">
		<meta name="msapplication-square70x70logo" content="/assets/img/smalltile.png" />
		<meta name="msapplication-square150x150logo" content="/assets/img/mediumtile.png" />
		<meta name="msapplication-wide310x150logo" content="/assets/img/widetile.png" />
		<meta name="msapplication-square310x310logo" content="/assets/img/largetile.png" />

		<%= javascript_include_merged :base %>
		<%= yield :tinymce %>
		<%= javascript_include_merged :tt %>
		<%= javascript_include_tag "beast" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= javascript_include_tag "swfobject" %>
		<%= stylesheet_link_merged :tt %>
		<%= stylesheet_link_tag "beast" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= javascript_include_tag "builder" if ['activities'].include? controller.controller_name %>
		<% if ['activities'].include? controller.controller_name %>
		<%= javascript_include_tag "portal" %>

		<%= javascript_include_tag "flotr" %><% end %><%= yield :tinymce_init %>

		<%= stylesheet_link_tag "print", { :media => "print" } %>
		<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'rss', :id => current_user.uuid }) %>

		<title>
			<%= controller.controller_name + " / " + controller.action_name %>
		</title>

		<% @internal = Customer.find(:first, :conditions => ["company_id = ? AND (name = 'Internal' or name = ?)", current_user.company_id, current_user.company.name ]) %>

			<%= image_tag('spinner.gif', :border => 0) %>

						<%= render(:partial => "layouts/menu") %>

						  					<%= render :partial => "layouts/tabmenu" %>

			  		<% news = NewsItem.find(:first, :order => "id desc", :conditions => ["id > ?", current_user.seen_news_id ]) %><% unless news.nil? %>

										[<%= tz.utc_to_local(news.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %>]

										<%= news.body %>

									<%= link_to_remote "#{_('')}", :url => { :controller => 'users', :action => 'update_seen_news', :id => news.id }, :success => visual_effect(:fade, "news", :duration => 0.5) %>

					<% end %>

					<div id="flash" <%="style=\"display:none\"" unless flash['notice']%>>

					  				<%= flash['notice'] %>

										<%= @content_for_layout %>

									<td align="right" valign="top" style="width:15%;<%= "display:none;" if session[:collapse_menu].to_i > 0 %>" id="left_menu">

														<%= h(current_user.name) %>

														<%= "#{online_users} #{_('Online')}" %>

															<%= "" %>

														<% if total_today > 0 %>

														<%=_ 'You have worked'%> <%= distance_of_time_in_words(total_today.minutes) %>
														<%=_ 'today.'%>
														<% end %>

													<div <%= "style=\"display:none;\"" if @current_sheet.nil? || controller.action_name == "stop_work" %>
													id="work-log">

																	<div class="tooltip" title="<%= _'Text entered here will be saved to you work log.automatically to your current task.'%>">
																		<%= _'Work Log' %>

																	<form method="post" onsubmit="return false;" id="worklog_form">
																		<textarea name="worklog[body]" id="worklog_body" style="resize: vertical; font-size: 11px; margin: 0px; border:none; width:97%;" rows="7" placeholder="Text entered here will be saved automatically to your current task."><%= @current_sheet.body if @current_sheet%></textarea>
																	</form>

												<td align="left" class="page_header_side tooltip" colspan="2" width="100%" title="<%= _'Custom saved filters showing a subset of your tasks'%>">

														<%=_ 'Task Views' %>

														<%= link_to _('
'), :controller => 'views', :action => 'new' %>

													<%= link_to _('My Open Tasks'), :controller => 'views', :action => 'my_tasks'%>

													<% project_ids = current_project_ids %><% client_ids = current_projects.collect(&:customer_id).uniq.join(',')
														client_ids = "0" if client_ids.nil? || client_ids.empty?
														views = View.find(:all, :conditions => ["company_id = ? AND (user_id = ? or shared = 1) AND (filter_customer_id = 0 OR filter_customer_id IS NULL OR filter_customer_id IN (#{client_ids})) AND (filter_project_id = 0 OR filter_project_id IS NULL OR filter_project_id IN (#{project_ids}))", current_user.company_id, current_user.id], :order => "shared, name")
														for view in views %>

													<%= link_to view.name, :controller => 'views', :action => 'select', :id => view %>
													<%= link_to _(''), :controller => 'views', :action => 'edit', :id => view if(view.user_id == current_user.id || current_user.admin?)%>

											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'Quickly access recently edited Wikis'%>">

														<%=_ 'Recent Wikis'%>

											<% wikis = WikiPage.find(:all, :limit => 6, :order => "updated_at DESC") %>
											<% wiki_i = 0 %>
											<% for wiki in wikis %>

												<td class="views_item" style="white-space:nowrap;<%= "padding-top:0.2em;" if (wiki_i == 0) %>">

														<%= wiki.to_url_truncate(28) %>

												<td<%= " style=\"color: padding-top:0.2em\"" if (wiki_i == 0) %>>
													  <%= wiki.updated_at.strftime("%m/%d") %>

											<% wiki_i += 1 %>
											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'EMRL Blog'%>">

														<%=_ 'Blog'%>

						<% if current_user.company.show_messaging %>

										<% current_user.chats.each do |@chat| @user = @chat.target %>
										<%= render :partial => 'shout/chat_user' if @chat.active >= 0%>
											<% if @chat.active == 1 %>

									  		<% end %>
								  		<% end %>

														<%= _'Loading'%>...

												<% all_users.each do |u| %>
													<% if u.id != current_user.id %>
														<% if u.online? %>

																<img src="<%= u.avatar_url(32) %>" class="photo tooltip" style="height:32px;width:32px;border-radius:50%" class="tooltip" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">

					  									<% elsif u.idle? %>
															<img src="<%= u.avatar_url(32) %>" class="photo desaturate tooltip" style="height:32px;width:32px;border-radius:50%;opacity:0.3;filter:alpha(opacity=30)" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">
					  									<% end %>
													<% end %>
			  									<% end %>

	  							<% end %>

								<%= periodically_call_remote(:url => { :controller => 'tasks', :action => 'update_sheet_info' }, :frequency => 90 ) -%>
								<%= flash_plugin(session[:channels]) %>

								<%#= query_review_output %>


ActionItem8: adding onload javascript callback to BODY element, to put focus on first control of first form (borrowed from criamos)

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

    <%= javascript_include_tag :defaults %>
    <%= design_all_header_tags %>
    <%= javascript_include_tag 'cms' %>
    <% if params[:controller] == 'cms' %>
      <%= stylesheet_link_tag 'cms' %>
    <% end %>
    <%= stylesheet_link_tag 'common' %>

    <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;" %>

      <% unless flash[:notice].nil? %>

          <%= flash[:notice] %>

            <%=  link_to_function( content_tag(:span, _('Close') ), visual_effect(:fade, "notice", :duration => 0.5), :id => 'button_close_notice' ) %>

      <% end %>

          <%= _('Skip to:') %>
          <%= _('Content') %> |
          <%= _('Navigation') %> |
          <%= _('Footer') %>

          <%= header %>

          <% if params[:controller] == 'cms' %>

              <%= yield %>

          <% else %>
            <%= design_display(yield) %>
          <% end %>

          <%= footer %>
          <%= design_display_icon('back', :action => 'list')%>

    <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;", :alt => _('Image for Loading...') %>


ActionItem837: identifying screens without blocks

In the case where no blocks are presented, wrap the content with a div
that identifies that fact. This way designers can add special formatting
for those screens that should not applied to regular screens (those that
do have the blocks).

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

    <title>
      <%= @environment.name() %>
      <%- if @category -%>
        → <%= @category.full_name -%>
      <%- end -%>
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="FIXME: Descriptions of Noosfero" />
    <meta name="keywords" content="Noosfero, Community, Open Source" />
    <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/images/favicon.ico' %>" type="image/x-icon" />

    <%= javascript_include_tag 'default-config' %>
    <%= javascript_include_tag :defaults %>
    <%# javascript_include_tag 'animator' %>

    <%= javascript_include_tag 'jquery-latest.js' %>

    <%= javascript_include_tag 'thickbox.js' %>

    <%= javascript_include_tag 'menu' %>
    <%= javascript_include_tag 'auto-open-menu' %>
    <%= include_lightbox_header %>
    <%= javascript_include_tag 'cms' if @controller.controller_name == 'cms' %>
    <%= theme_javascript %>

    <%#
     stylesheet_import is better then stylesheet_link_tag because the stylesheet
     must be loaded before the page show.
    %>
    <%=
      # Load the principal css files:
      stylesheet_import( %w( common help menu article button search blocks forms login-box thickbox profiles )
                         ) + "\n" +
      stylesheet_import( %w( common help menu article button search blocks forms login-box ),
                         :themed_source => true ) + "\n" +
      # Load the boxes's css file if each exists:
      import_blocks_stylesheets +
      # Load the controller's css file if it exists:
      stylesheet_import( "controller_"+ @controller.controller_name() ) + "\n" +
      stylesheet_import( "controller_"+ @controller.controller_name(), :themed_source => true )
    %>

    <%= template_stylesheet_tag %>

    <%# FIXME %>
    <%= stylesheet_link_tag '/designs/icons/default/style.css' %>

    <%= stylesheet_link_tag 'iepngfix/iepngfix.css' %>
    <base href="<%= base_url %>"/>

  <body class='noosfero category<%= category_color %><%=
    # Identify the current controller and action for the CSS:
    " controller_"+ @controller.controller_name() +
    " action_"+ @controller.controller_name() +"_"+ @controller.action_name()
    %>' onload='noosfero_init();'
    help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> >

    <% unless flash[:notice].nil? %>

        <%= flash[:notice] %>
        <%= javascript_tag(
          visual_effect( :appear,    'notice', :duration => 2, :queue => :end ) +
          visual_effect( :highlight, 'notice', :duration => 3, :queue => :end ) +
          visual_effect( :fade,      'notice', :duration => 2, :queue => :end )
        ) %>

    <% end %>

      <%= _('Go to content') %>

BETA

        <%= _("This is %s's shortcuts bar. Using it you have access to the main features of the environment and you find the information of your interest more quickly.") % @environment.name %>

        <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %>

          <%= link_to ""+ @environment.name() +"",
                      { :controller=>"home" },
                        :id=>"menu_link_to_envhome",
                        :title=>@environment.name  %>
          <% unless environment.enabled?(:disable_categories) %>
            <% cache(:controller => 'public', :action => 'categories_menu') do %>
              <%= render :file => 'shared/categories_menu' %>
            <% end %>
          <% end %>
          <%= render :file => 'shared/assets_menu' %>

           <%= language_chooser(:element => 'dropdown') %>

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

        <a href="#" id="btShowHelp" class="icon-help32on help-on"
           title="<%= _('Turn help on/off') %>"
           onclick="mouseHelpOnOff(); return false"><%= _('Help') %>

          <% if @controller.send(:boxes_editor?) %>
            <%= yield %>
            <%= display_boxes_editor(@controller.boxes_holder) %>
          <% else %>
            <% if uses_design_blocks?  %>
              <%= display_boxes(@controller.boxes_holder, yield) %>
            <% else %>

                <%= yield %>

            <% end %>
          <% end %>

      <%= theme_footer %>

    <%= javascript_include_tag 'show-mouse-help' %>
    <%= javascript_include_tag 'noosfero-show-help' %>

<%=
      _('Your web browser is obsolete!') +'

'+
      _('This website will not look as good as it could.
         Don\'t you want to use Firefox? That is a great web browser, free,
         and made by people of all the world parts.')
      %>

      <%= _('Get Firefox Now!') %>

    <%= javascript_include_tag 'better-browser-promotion' %>

    <% if is_testing_theme %>
      <%= render :file => 'shared/theme_test_panel' %>
    <% end %>