More question answers for officers.

More question answers for officers.

<% @title = "About" %>

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.

Who makes it?

WhatDoTheyKnow is made 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 within 20 days, excluding weekends and
any UK bank holidays. The date that the response is due by 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 hurry them up.
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'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 Commisioner's website.

Can I request information about myself?

Not using this site. 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 Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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.

Privacy questions

Who gets to see my email address?

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. 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 appear publically on the site?

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym?

Yes, you can. It is good practice for the public authority to reply to such
a request, except in special circumstances such as if they suspect you of
making vexatious requests. See Freedom of Information Good Practice Guidance No 6 for details. You
should refer to this if a public authority attempts to refuse a request because you used a pseudonym.
Saying that, you can avoid the problem by simply making your pseudonym look like a real person's name,
as there is no general obligation to prove your identity.

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

Why does the list of things that I'm tracking appear publically on the site?

This helps you find others who are researching the same area of government,
so you can form groups to investigate or campaign together. It also helps us
show requests which are related to other requests. If you've ever used a
"social bookmarking" website such as Delicious, Digg or reddit, think of it like
that.

FOI officer questions

Why are you publishing responses to FOI requests?

Freedom of Information responses contain public information, which anybody could
easily request again from the public authority. Therefore,
there is no reason they shouldn't be published on the Internet. There are lots
of benefits - everything from preventing duplicate requests, to getting the public
more involved and interested in the work of government.

Are the people making requests real people?

Yes. This website is a service to help ordinary members of the public
make FOI requests, and easily track the responses. The people are real
people, for whom we have a verified email address unique to each person.

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.

Won't I be breaking copyright law by sending a response that you then publish?

No, you will simply be replying to an FOI request by email (the "expressed
preference" of the requester, under
section
11(1) of the Freedom of Information Act). That we are later republishing your
response is a separate matter of copyright law, and not something which FOIA lists
as a reason for rejecting a request.

Isn't it a problem that you publish the names of civil servants
and the text of emails?

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers?

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me?

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

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 and John Cross.

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.

<% @title = "About" %>

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.

Who makes it?

WhatDoTheyKnow is made 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 within 20 days, excluding weekends and
any UK bank holidays. The date that the response is due by 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 hurry them up.
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'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 Commisioner's website.

Can I request information about myself?

Not using this site. 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 Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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.

Privacy questions

Who gets to see my email address?

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. 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 appear publically on the site?

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym?

Yes, you can. It is good practice for the public authority to reply to such
a request, except in special circumstances such as if they suspect you of
making vexatious requests. See Freedom of Information Good Practice Guidance No 6 for details. You
should refer to this if a public authority attempts to refuse a request because you used a pseudonym.
Saying that, you can avoid the problem by simply making your pseudonym look like a real person's name,
as there is no general obligation to prove your identity.

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

Why does the list of things that I'm tracking appear publically on the site?

This helps you find others who are researching the same area of government,
so you can form groups to investigate or campaign together. It also helps us
show requests which are related to other requests. If you've ever used a
"social bookmarking" website such as Delicious, Digg or reddit, think of it like
that.

FOI officer questions

Why are you publishing responses to FOI requests?

Freedom of Information responses contain public information, which anybody could
easily request again from the public authority. Therefore,
there is no reason they shouldn't be published on the Internet. There are lots
of benefits - everything from preventing duplicate requests, to getting the public
more involved and interested in the work of government.

What about the names of civil servants and the text of emails?

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers?

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me?

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Won't I be breaking copyright law by sending a response that you then publish?

No, you will simply be replying to an FOI request by email (the "expressed
preference" of the requester, under
section
11(1) of the Freedom of Information Act). That we are later republishing your
response is a separate matter of copyright law, and not something which FOIA lists
as a reason for rejecting a request.

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 and John Cross.

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.


Adjust front page lead to include European Union

<% view_cache :ttl => 5.minutes, :tag => I18n.locale do %>

You have the right to ask European Union bodies for information,

        they are legally obliged to respond

About AskTheEU

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _('More'), help_about_url %>

Make
Your Request

Lorem isum dolor sit amet, consectetuer
        adipiscing elit, sed diam nonummy nibh.

            <%= link_to _("Request"), select_authority_url %>

Search Requests

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _("Search"), request_list_successful_url %>

EU institutions

            What can you ask and to whom?

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
            euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad
            minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
            ex ea commodo consequat.

Follow us

Video

News

            <% for item in @blog_items[0..2]: %>

<%= simple_date(Time.parse(item['pubDate'][0])) %>

            <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

            <% end %>

View all news

<% end %>

<% view_cache :ttl => 5.minutes, :tag => I18n.locale do %>

You have the right to ask for information, they are legally obliged to respond

About AskTheEU

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _('More'), help_about_url %>

Make
Your Request

Lorem isum dolor sit amet, consectetuer
        adipiscing elit, sed diam nonummy nibh.

            <%= link_to _("Request"), select_authority_url %>

Search Requests

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _("Search"), request_list_successful_url %>

EU institutions

            What can you ask and to whom?

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
            euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad
            minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
            ex ea commodo consequat.

Follow us

Video

News

            <% for item in @blog_items[0..2]: %>

<%= simple_date(Time.parse(item['pubDate'][0])) %>

            <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

            <% end %>

View all news

<% end %>


Use new modular partials from alaveteli front page template

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

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

      <%= render :partial => "frontpage_new_request" %>

      <%= render :partial => "frontpage_search_box" %>

      <%= render :partial => "frontpage_bodies_list" %>
      <%= render :partial => "frontpage_requests_list" %>

<% end %>

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

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

        <%= _("Make a new

        Freedom of

        Information

        Request") %>

      <%= _("Start now »") %>

        <%= _("Search over

        {{number_of_requests}} requests and

        {{number_of_authorities}} authorities",
        :number_of_requests => InfoRequest.visible.count, :number_of_authorities => PublicBody.visible.count) %>

      <% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

        <%= text_field_tag 'query', params[:query], { :size => 30 } %>
        <%= submit_tag _('Search') %>

      <% end %>

    <% if @popular_bodies.size > 0 %>

<%= _("Who can I request information from?") %>

        <%= _("{{site_name}} covers requests to {{number_of_authorities}} authorities, including:",
            :site_name => site_name, :number_of_authorities => PublicBody.visible.count) %>

            <% for popular_body in @popular_bodies %>

<%=public_body_link(popular_body)%>
                 <%= n_('%d request', '%d requests', popular_body.info_requests_count) % popular_body.info_requests_count %>

            <% end%>

            <%= link_to _('Browse all authorities...'), list_public_bodies_default %>

    <% end %>

        <% if @request_events_all_successful %>
          <%= _("What information has been released?") %>
        <% else %>
          <%= _("What information has been requested?") %>
        <% end %>

       <%= _("{{site_name}} users have made {{number_of_requests}} requests, including:",
        :site_name => site_name, :number_of_requests => InfoRequest.visible.count) %>

          <% for event in @request_events %>

              <% if @request_events_all_successful %>
                <%= _("{{public_body_link}} answered a request about",
                    :public_body_link => public_body_link(event.info_request.public_body)) %>
              <% else %>
                <%= _("{{public_body_link}} was sent a request about",
                    :public_body_link => public_body_link(event.info_request.public_body)) %>
              <% end %>

               <%=link_to h(event.info_request.title), request_url(event.info_request)%>
               <%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(event.described_at)) %>
               <p class="excerpt" onclick="document.location.href='<%=request_url(event.info_request)%>'"><%= excerpt(event.search_text_main(true), "", 200) %>

          <% end %>

          <% if @request_events_all_successful %>
            <%=link_to _('More successful requests...'), request_list_successful_url %>
          <% else %>
            <%=link_to _('More requests...'), request_list_all_url %>
          <% end %>

<% end %>


Fix mistake in merge from last commit. Generally helps to close tags

<% @title = "About" %>

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

Introduction to <%= site_name %> #

What is  <%= site_name %> for? #

To help you find out inside information about what the Australian 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 <%= site_name %>? #

<%= site_name %> is created and run by volunteers.
  If you like what we're doing, then you can make a donation.

How can I keep up with news about <%= site_name %>?#

We have a blog and a twitter feed.

Next, read about making requests -->


wrong name

wrong name

<!-- Some code to re-size our window to config defined minimum height/width
     We have little control over what size a content provider generates a
     window for a link resolver. Often it's too small. So we resize in
     js. -->

<script language="javascript">
min_width = <%= AppConfig.param('minimum_window_width', 0)%>;
min_height = <%= AppConfig.param('minimum_window_height', 0)%>;
// Default to something huge, so if we fail in getting dimensions,
// we won't resize.
orig_width = 100000;
orig_height = 100000;
if (self.innerHeight)
// all except Explorer
{
	orig_width = top.innerWidth;
	orig_height = top.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
{
	orig_width = top.document.documentElement.clientWidth;
	orig_height = top.document.documentElement.clientHeight;
}
else if (document.body)
// other Explorers
{
	orig_width = top.document.body.clientWidth;
	orig_height = top.document.body.clientHeight;
}

width_diff = min_width - orig_width;
height_diff = min_height - orig_height;

if (width_diff < 0) { width_diff = 0 }
if (height_diff < 0) { height_diff = 0 }

if (width_diff >0 || height_diff > 0) {
  top.window.resizeBy(width_diff, height_diff)
}
</script>


Add CSS-friendly IDs to event editing form

Basic Information

Event name: <%= text_field "event", "fullname" %>

    Short name: <%= text_field "event", "shortname" %>

    Starts at: <%= datetime_select "event", "start" %>

    Ends at: <%= datetime_select "event", "end" %>

Locations

Current locations:
  <% if @event.locations.size > 0 -%>
    <%= @event.locations.collect { |l| h(l.name) }.join(", ") %>
  <% else -%>
    none
  <% end -%>

  (<%= link_to_function "Edit" do |page|
      page.hide "location_summary"
      page.show "event_locations"
    end %>)

  <select id="event_locations" style="display: none;" multiple="multiple" name="event[locations][]">
  	<%= location_options @event.locations %>
  </select>

Description/Blurb

Blurb:

          <%= text_area "event", "blurb" %>

Description:

          <%= text_area "event", "description" %>

Registration Options

      <%= check_box_tag "registration_open", "open", @registration_open %>
      Event registration is open

    	<%= check_box "event", "attendees_visible" %>
  	People attending this event can see the attendee list

      <%= check_box_tag "non_exclusive", "nonexclusive", @non_exclusive %>
      People can attend this event at the same time as other events

      <%= check_box_tag "age_restricted", "agerestricted", @age_restricted %>
      This event has a minimum age of <%= text_field_tag "min_age", @min_age %>

      <%= check_box_tag "limited_capacity", "limited", @limited_capacity,
              :onChange => "updateCapacityLimitsVisibility();"%>
      Limited capacity

          <% %w( male female neutral ).each do |gender| -%>

              <%= gender %>
              <% %w( min preferred max ).each do |threshold| -%>
                <%= threshold.humanize %>: <%= text_field_tag "limits[#{gender}][#{threshold}]", @limits[gender][threshold] %>
              <% end -%>

          <% end %>

Virtual Sites

  <%= render :partial => "virtual_sites_form" %>

Event Staff

  <% if @event.staff.length > 0 -%>

      <% @event.staff.each do |staff| -%>

<%= staff.name %> (Remove: <%= check_box_tag "remove_staff[#{staff.id}]" %>)

      <% end -%>

  <% else -%>

There are currently no staff listed for this event.

  <% end -%>

Add staff by name: <%= text_field_tag "add_staff[firstname]" %> <%= text_field_tag "add_staff[lastname]" %>

<%= submit_tag %>

Event name: <%= text_field "event", "fullname" %>

  Short name: <%= text_field "event", "shortname" %>

  Starts at: <%= datetime_select "event", "start" %>

  Ends at: <%= datetime_select "event", "end" %>

Locations

Current locations:
<% if @event.locations.size > 0 -%>
  <%= @event.locations.collect { |l| h(l.name) }.join(", ") %>
<% else -%>
  none
<% end -%>

(<%= link_to_function "Edit" do |page|
    page.hide "location_summary"
    page.show "event_locations"
  end %>)

<select id="event_locations" style="display: none;" multiple="multiple" name="event[locations][]">
	<%= location_options @event.locations %>
</select>

Description/Blurb

Blurb:

        <%= text_area "event", "blurb" %>

Description:

        <%= text_area "event", "description" %>

Permissions

    <%= check_box_tag "registration_open", "open", @registration_open %>
    Event registration is open

  	<%= check_box "event", "attendees_visible" %>
	People attending this event can see the attendee list

    <%= check_box_tag "non_exclusive", "nonexclusive", @non_exclusive %>
    People can attend this event at the same time as other events

    <%= check_box_tag "age_restricted", "agerestricted", @age_restricted %>
    This event has a minimum age of <%= text_field_tag "min_age", @min_age %>

    <%= check_box_tag "limited_capacity", "limited", @limited_capacity,
            :onChange => "updateCapacityLimitsVisibility();"%>
    Limited capacity

        <% %w( male female neutral ).each do |gender| -%>

            <%= gender %>
            <% %w( min preferred max ).each do |threshold| -%>
              <%= threshold.humanize %>: <%= text_field_tag "limits[#{gender}][#{threshold}]", @limits[gender][threshold] %>
            <% end -%>

        <% end %>

Virtual Sites

<%= render :partial => "virtual_sites_form" %>

Event Staff

<% if @event.staff.length > 0 -%>

    <% @event.staff.each do |staff| -%>

<%= staff.name %> (Remove: <%= check_box_tag "remove_staff[#{staff.id}]" %>)

    <% end -%>

<% else -%>

There are currently no staff listed for this event.

<% end -%>

Add staff by name: <%= text_field_tag "add_staff[firstname]" %> <%= text_field_tag "add_staff[lastname]" %>

<%= submit_tag %>


Handle the case where a blog item doesn't have any comment elements.

<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>

<% if !@twitter_user.empty? %>

<%= _("Stay up to date") %>

     <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %>

     <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %>

<% end %>

<%=@title %>

    <% for item in @blog_items: %>

          <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><a href="<%=item['link']%>"><%=h item['title'] %>

<%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %>

<%= item['encoded'] %>

            <% if item['comments'] %>
              <a href="<%=item['comments'][0]%>"><%= _("{{number_of_comments}} comments", :number_of_comments=>item['comments'][1]) %>
            <% end %>

    <% end   %>

<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>

<% if !@twitter_user.empty? %>

<%= _("Stay up to date") %>

     <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %>

     <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %>

<% end %>

<%=@title %>

    <% for item in @blog_items: %>

          <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><a href="<%=item['link']%>"><%=h item['title'] %>

<%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %>

<%= item['encoded'] %>

              <a href="<%=item['comments'][0]%>"><%= _("{{number_of_comments}} comments", :number_of_comments=>item['comments'][1]) %>

    <% end   %>


Explicit check to determine whether the rubric is "Review Rubric" or "Author Feedback" done

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@400 392d7b7b-3f31-0410-9dc3-c95a9635ea79

<%
    @participants = AssignmentParticipant.find(:all, :conditions => ["parent_id = ?",@assignment_id]).map {|u| [u.user_id]}
    for participant in @participants
        review_no = 1
        grade = 0
        if participant.submitted_at > @very_last_due_date
        penalty_in_minutes = participant.submitted_at
        @review_mapping = ReviewMapping.find(:all,:conditions => ["author_id = ? and assignment_id = ?", participant, @assignment_id])
        for review_map in @review_mapping
            for review in review_map.reviews%>
                Review <%=review_no%>
                 <%
                total = 0
                 for review_score in ReviewScore.find(:all, :conditions=>["review_id=? and questionnaire_type_id=?",review.id, QuestionnaireType.find_by_name("Review Rubric")])
                    if (!Question.find(review_score.question_id).true_false)
                        total += review_score.score
                    end
                 end
                 grade += total
                 review_no +=1
            end
        end
     end
%>

<%
    @participants = AssignmentParticipant.find(:all, :conditions => ["parent_id = ?",@assignment_id]).map {|u| [u.user_id]}
    for participant in @participants
        review_no = 1
        grade = 0
        if participant.submitted_at > @very_last_due_date
        penalty_in_minutes = participant.submitted_at
        @review_mapping = ReviewMapping.find(:all,:conditions => ["author_id = ? and assignment_id = ?", participant, @assignment_id])
        for review_map in @review_mapping
            for review in review_map.reviews%>
                Review <%=review_no%>
                 <%
                total = 0
                 for review_score in review.review_scores
                    if (!Question.find(review_score.question_id).true_false)
                        total += review_score.score
                    end
                 end
                 grade += total
                 review_no +=1
            end
        end
     end
%>


Enable disabling of similar search.

Enable disabling of similar search.

<% @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.nil? && @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 %>

    <% if @info_request.awaiting_description %>

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

    <% end %>

Things to do with this request

        <%= link_to "Add an annotation", new_comment_url(:url_title => @info_request.url_title) %> (to help
        the requester or others)

        <% if @last_response.nil? %>
            <%= link_to "Send follow up to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
        <% else %>
            <%= link_to "Reply to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
        <% end %>
        (<%=h @info_request.user.name %> only)

        <%= link_to "Respond to request", upload_response_url(:url_title => @info_request.url_title) %> (FOI
        officers only)

<% @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 %>

    <% if @info_request.awaiting_description %>

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

    <% end %>

Things to do with this request

        <%= link_to "Add an annotation", new_comment_url(:url_title => @info_request.url_title) %> (to help
        the requester or others)

        <% if @last_response.nil? %>
            <%= link_to "Send follow up to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
        <% else %>
            <%= link_to "Reply to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
        <% end %>
        (<%=h @info_request.user.name %> only)

        <%= link_to "Respond to request", upload_response_url(:url_title => @info_request.url_title) %> (FOI
        officers only)


Fix #364 properly: third time lucky!

Fix #364 properly: third time lucky!

<% @title = h(@public_body.name) + _(" - view and make Freedom of Information requests") %>

<%= _('Follow this authority')%>

      <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>

<%= n_("There is %d person following this authority", "There are %d people following this authority", follower_count) % follower_count %>

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

<%= _('More about this authority')%>

        <% if !@public_body.calculated_home_page.nil? %>
            <%= link_to _('Home page of authority'), @public_body.calculated_home_page %>

        <% end %>
        <% if !@public_body.publication_scheme.empty? %>
            <%= link_to _('Publication scheme'), @public_body.publication_scheme %>

        <% end %>
        <% if @public_body.has_tag?("charity") %>
            <% for tag_value in @public_body.get_tag_values("charity") %>
                <% if tag_value.match(/^SC/) %>
                    <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %>

                <% else %>
                    <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %>

                <% end %>
            <% end %>
        <% end %>
        <%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %>

<%= _("Freedom of information requests to") %>

<%=h(@public_body.name)%>

        <%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>,
        <%= _('also called {{public_body_short_name}}', :public_body_short_name =>  h(@public_body.short_name))%><% end %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to _("admin"), public_body_admin_url(@public_body) %>)
        <% end %>

        <% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

        <% end %>

        <% if @public_body.eir_only? %>

<%= _('You can only request information about the environment from this authority.')%>

        <% end %>

            <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
                <% if @public_body.eir_only? %>
                    <%= _('Make a new Environmental Information request')%>
                <% else %>
                    <%= _('Make a new Freedom of Information request to {{public_body}}', :public_body => h(@public_body.name))%>
                <% end %>
                 <%= _('{{text}}', :url=>new_request_to_body_url(:url_name => @public_body.url_name), :text=>_("Start"))%>
            <% elsif @public_body.has_notes? %>
                <%= @public_body.notes_as_html %>
            <% elsif @public_body.not_requestable_reason == 'not_apply' %>
                <%= _('Freedom of Information law does not apply to this authority, so you cannot make
                a request to it.')%>
            <% elsif @public_body.not_requestable_reason == 'defunct' %>
                <%= _('This authority no longer exists, so you cannot make a request to it.')%>
            <% else %>
                <%= _('For an unknown reason, it is not possible to make a request to this authority.')%>
            <% end %>

       <% if @public_body.info_requests.size == 0 %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made using this site') %>

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

            <% else %>

<%= _('Freedom of Information requests made using this site')%>

<%= _('Nobody has made any Freedom of Information requests to {{public_body_name}} using this site yet.', :public_body_name => h(@public_body.name))%>

            <% end %>
        <% else %>

                <% if @public_body.eir_only? %>
                    <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %>
                <% else %>
               <% if  @public_body.info_requests.size > 4 %>
                <%= n_('Search within the %d Freedom of Information requests to %s', 'Search within the %d Freedom of Information requests made to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
                   <% else %>
                  <%= n_('%d Freedom of Information request to %s', '%d Freedom of Information requests to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
               <% end %>
                <% end %>
                <%= @page_desc %>

            <% if  @public_body.info_requests.size > 4 %>
                <%= render :partial => 'request/request_filter_form' %>
            <% end %>
        <% end %>

        <% if !@xapian_requests.nil? %>

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

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

            <% if @xapian_requests.results.empty? %>

<% _('There were no requests matching your query.') %>

            <% else %>

 <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %>

            <% end %>

        <% else %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made') %>

            <% else %>

 <%= _('Freedom of Information requests made')%>

            <% end %>

 <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%>

        <% end %>

<% @title = h(@public_body.name) + _(" - view and make Freedom of Information requests") %>

<%= _('Follow this authority')%>

      <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>

<%= n_("There is %d person following this authority", "There are %d people following this authority", follower_count) % follower_count %>

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

<%= _('More about this authority')%>

        <% if !@public_body.calculated_home_page.nil? %>
            <%= link_to _('Home page of authority'), @public_body.calculated_home_page %>

        <% end %>
        <% if !@public_body.publication_scheme.empty? %>
            <%= link_to _('Publication scheme'), @public_body.publication_scheme %>

        <% end %>
        <% if @public_body.has_tag?("charity") %>
            <% for tag_value in @public_body.get_tag_values("charity") %>
                <% if tag_value.match(/^SC/) %>
                    <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %>

                <% else %>
                    <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %>

                <% end %>
            <% end %>
        <% end %>
        <%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %>

<%= _("Freedom of information requests to") %>

<%=h(@public_body.name)%>

        <%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>,
        <%= _('also called {{public_body_short_name}}', :public_body_short_name =>  h(@public_body.short_name))%><% end %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to _("admin"), public_body_admin_url(@public_body) %>)
        <% end %>

        <% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

        <% end %>

        <% if @public_body.eir_only? %>

<%= _('You can only request information about the environment from this authority.')%>

        <% end %>

            <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
                <% if @public_body.eir_only? %>
                    <%= _('Make a new Environmental Information request')%>
                <% else %>
                    <%= _('Make a new Freedom of Information request to {{public_body}}', :public_body => h(@public_body.name))%>
                <% end %>
                 <%= _('{{text}}', :url=>new_request_to_body_url(:url_name => @public_body.url_name), :text=>_("Start"))%>
            <% elsif @public_body.has_notes? %>
                <%= @public_body.notes_as_html %>
            <% elsif @public_body.not_requestable_reason == 'not_apply' %>
                <%= _('Freedom of Information law does not apply to this authority, so you cannot make
                a request to it.')%>
            <% elsif @public_body.not_requestable_reason == 'defunct' %>
                <%= _('This authority no longer exists, so you cannot make a request to it.')%>
            <% else %>
                <%= _('For an unknown reason, it is not possible to make a request to this authority.')%>
            <% end %>

       <% if @public_body.info_requests.size == 0 %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made using this site') %>

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

            <% else %>

<%= _('Freedom of Information requests made using this site')%>

<%= _('Nobody has made any Freedom of Information requests to {{public_body_name}} using this site yet.', :public_body_name => h(@public_body.name))%>

            <% end %>
        <% else %>

                <% if @public_body.eir_only? %>
                    <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %>
                <% else %>
               <% if  @public_body.info_requests.size > 4 %>
                <%= n_('Search within the %d Freedom of Information requests to %s', 'Search within the %d Freedom of Information requests made to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
                   <% else %>
                  <%= n_('%d Freedom of Information request to %s', '%d Freedom of Information requests to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
               <% end %>
                <% end %>
                <%= @page_desc %>

            <% if  @public_body.info_requests.size > 4 %>
                <%= render :partial => 'request/request_filter_form' %>
            <% end %>
        <% end %>

        <% if !@xapian_requests.nil? %>

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

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @xapian_requests.results.size) %>

            <% if @xapian_requests.results.empty? %>

<% _('There were no requests matching your query.') %>

            <% else %>

 <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %>

            <% end %>

        <% else %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made') %>

            <% else %>

 <%= _('Freedom of Information requests made')%>

            <% end %>

 <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%>

        <% end %>


woke tags up from their coma

woke tags up from their coma

<%= "Create a new".t %> <%= @page_class.class_display_name.t %>

<% form_tag(:action => 'create') do %>
<%= hidden_field_tag 'page_class', @page_class %>

    <%= 'Page Info' %>

  Title:
  <%= text_field 'page', 'title', :size => 38 %>
  <%= javascript_tag %( $("page_title").focus() ) %>

  Summary:
  <%= text_area 'page', 'summary', :size => '30x3' %>

  Tags:
  <%= text_field_tag 'tag_list', '', :size => 38 %>
  (separate tags using commas)

<% if current_user.all_groups.any? -%>

    <%= 'Access Info' %>

  Group:
  <%= "Select which groups will have access to this page" %>

    <%= select_tag 'group_id', options_for_select(
      [['no one, just me', '']] + current_user.all_groups.to_select(:name), params[:group_id]
    ) %>

<% end -%>

    <%= submit_tag "Create page".t, :name => 'create' %>

<% end %>

<%= "Create a new".t %> <%= @page_class.class_display_name.t %>

<% form_tag(:action => 'create') do %>
<%= hidden_field_tag 'page_class', @page_class %>

    <%= 'Page Info' %>

  Title:
  <%= text_field 'page', 'title', :size => 38 %>
  <%= javascript_tag %( $("page_title").focus() ) %>

  Summary:
  <%= text_area 'page', 'summary', :size => '30x3' %>

  Tags:
  <%= text_field_tag 'tag_list', '', :size => 38 %>
  (separate tags using comas)

<% if current_user.all_groups.any? -%>

    <%= 'Access Info' %>

  Group:
  <%= "Select which groups will have access to this page" %>

    <%= select_tag 'group_id', options_for_select(
      [['no one, just me', '']] + current_user.all_groups.to_select(:name), params[:group_id]
    ) %>

<% end -%>

    <%= submit_tag "Create page".t, :name => 'create' %>

<% end %>


added Categories to admin tabs

added Categories to admin tabs

git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@599 2d86388d-c40f-0410-ad6a-a69da6a65d20

	<%=
		link_to('Schedule', :controller => 'schedule', :action => 'index')
	%> |
	<%=
		link_to('Racers', :controller => 'racers', :action => 'index')
	%> |
	<%=
		link_to('Teams', :controller => 'teams', :action => 'index')
	%> |
	<%=
		link_to('Categories', :controller => 'categories', :action => 'index')
	%>


Moved the submit buttons

Moved the submit buttons

<%= render :partial => '/shop/catalog/product_editor_js', :locals => {:features => @cls.features} %>

  <% admin_form_for :cls, @cls, :html => { :onsubmit => 'OptionEditor.saveVariationOrder(); ProductEditor.updateFeaturesOrder(); return true' } do |f| -%>
  <%= f.text_field :name %>
  <% f.custom_field '', :vertical => true do %>

  <% ajax_tabs ['Manage Product Variations', 'Features'], 'Manage Product Variations' do |t| -%>

  <% t.tab do -%>
  <%= render :partial => 'options' %>
  <% end -%>

  <% t.tab do -%>
  <%= render :partial => 'features' %>
  <% end -%>

  <% end -%>

  <button><%= h "Submit Changes".t %></button>
  <button onclick='document.location="<%= url_for :action=>'index' %>"; return false;' ><%= h "Cancel".t %></button>

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

<%= render :partial => '/shop/catalog/product_editor_js', :locals => {:features => @cls.features} %>

  <% admin_form_for :cls, @cls, :html => { :onsubmit => 'OptionEditor.saveVariationOrder(); ProductEditor.updateFeaturesOrder(); return true' } do |f| -%>
  <%= f.text_field :name %>
  <% f.custom_field '', :vertical => true do %>

  <% ajax_tabs ['Manage Product Variations', 'Features'], 'Manage Product Variations' do |t| -%>

  <% t.tab do -%>
  <%= render :partial => 'options' %>

  <button><%= h "Submit Changes".t %></button>
  <button onclick='document.location="<%= url_for :action=>'index' %>"; return false;' ><%= h "Cancel".t %></button>

  <% end -%>

  <% t.tab do -%>
  <%= render :partial => 'features' %>
  <% end -%>

  <% end -%>

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


html5 header, nav and footer tags

html5 header, nav and footer tags

<!DOCTYPE html>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%= h(@title) + " - " if @title -%>News Sniffer</title>
	<link href="/stylesheets/newsniffer.css" media="screen" rel="Stylesheet" type="text/css" />
	<%= javascript_include_tag :defaults, :cache => true %>
  <%= yield :head %>

				<%= link_to 'News Article Revisions', versions_url,
          :title => 'News article Revisions',
            :class => controller.controller_name == "versions" ? "selected" : "" %>

Blog

					<%= link_to 'About', '/blog/about'%>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end -%>
    <% if flash[:error] %>

<%= flash[:error] %>

    <% end -%>

    <%= yield %>

		<% cache(:footer_stats, :ttl => 2.hours) do %>

Currently monitoring <%= number_with_delimiter(NewsArticle.count, ",") %> news articles
			with <%= number_with_delimiter(NewsArticleVersion.count, ",") %> different versions.

		<% end %>

<!DOCTYPE html>

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title><%= h(@title) + " - " if @title -%>News Sniffer</title>
	<link href="/stylesheets/newsniffer.css" media="screen" rel="Stylesheet" type="text/css" />
	<%= javascript_include_tag :defaults, :cache => true %>
  <%= yield :head %>

				<%= link_to 'News Article Revisions', versions_url,
          :title => 'News article Revisions',
            :class => controller.controller_name == "versions" ? "selected" : "" %>

Blog

					<%= link_to 'About', '/blog/about'%>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end -%>
    <% if flash[:error] %>

<%= flash[:error] %>

    <% end -%>

    <%= yield %>

		<% cache(:footer_stats, :title => 2.hours) do %>

Currently monitoring <%= number_with_delimiter(NewsArticle.count, ",") %> news articles
			with <%= number_with_delimiter(NewsArticleVersion.count, ",") %> different versions.

		<% end %>


don't generate an empty table element, html validator doesn't like it

<%
=begin
  jrochkind's alternative partial for displaying holdings. Displays more
  information to deal with the more information we need to display from
  our Horizon. In tabular format. Customized for JH's needs, but should
  be usable by anyone.
=end
%>

<% holdings = get_service_type('holding') %>
<% unless holdings.empty? %>

  <%
  holdings.each do |p|
    target = p.view_data
  %>

<%= target[:collection_str] %>

        <%= target[:call_number]%>

        <% status_class = (target[:status] == "Not Charged" or target[:status] == "Available") ? 'available' : '' %>

        <span class="<%= status_class %>"><%= target[:status]   %>

        <%= link_to(image_tag("more_info.gif", "border" => 0, "alt" => 'more info'), {:controller=>"link_router", :id=>p.id}, "target" => "_blank") %>

        <% if target[:request_url] %>

          <%= link_to( image_tag("request.gif", "border" => "0", "alt" => "request"),  target[:request_url], "target" => "_blank" ) %>
        <% end %>

    <% if (!target[:match_reliability].blank?) && target[:match_reliability] != ServiceResponse::MatchExact %>

            Edition information <%= target[:edition_str] %>

    <% end %>

    <% unless target[:notes].blank? %>

<%= target[:notes] %>

    <% end %>

    <% unless target[:coverage_str_array].blank? %>

            <%
              hidden_div_id = "copies_#{p.id}"
              list_with_limit(hidden_div_id, target[:coverage_str_array]) do |item, index|
            %>

<%= item %>

            <% end %>

    <% end %>
  <%
  end %>

<% end %>

<%
if holdings.empty?
   searches = get_service_type('holding_search')
    searches.each do | result_st |
      response = result_st.view_data %>

<%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %>

<%
   end
end
if (holdings.blank? && searches.blank? && ! service_types_in_progress?(['holding', 'holding_search']))
%>

Not Available

<%
end %>

<% if session[:coins] %>

Check for holdings:

<%    session[:coins].each { | coins |
        unless coins[:text]
          label = image_tag(coins[:icon], :border=>0)
        else
          label = coins[:text]
        end
    %>

<a href="<%= coins[:host]%>?<%= @user_request.referent.to_context_object.kev %>" target="_blank"><%= label %>

    <%}%>

<%   end
%>

<%
=begin
  jrochkind's alternative partial for displaying holdings. Displays more
  information to deal with the more information we need to display from
  our Horizon. In tabular format. Customized for JH's needs, but should
  be usable by anyone.
=end
%>

<% holdings = get_service_type('holding') %>

<%
holdings.each do |p|
  target = p.view_data
%>

<%= target[:collection_str] %>

      <%= target[:call_number]%>

      <% status_class = (target[:status] == "Not Charged" or target[:status] == "Available") ? 'available' : '' %>

      <span class="<%= status_class %>"><%= target[:status]   %>

      <%= link_to(image_tag("more_info.gif", "border" => 0, "alt" => 'more info'), {:controller=>"link_router", :id=>p.id}, "target" => "_blank") %>

      <% if target[:request_url] %>

        <%= link_to( image_tag("request.gif", "border" => "0", "alt" => "request"),  target[:request_url], "target" => "_blank" ) %>
      <% end %>

  <% if (!target[:match_reliability].blank?) && target[:match_reliability] != ServiceResponse::MatchExact %>

          Edition information <%= target[:edition_str] %>

  <% end %>

  <% unless target[:notes].blank? %>

<%= target[:notes] %>

  <% end %>

  <% unless target[:coverage_str_array].blank? %>

          <%
            hidden_div_id = "copies_#{p.id}"
            list_with_limit(hidden_div_id, target[:coverage_str_array]) do |item, index|
          %>

<%= item %>

          <% end %>

  <% end %>
<%
end %>

<%
if holdings.empty?
   searches = get_service_type('holding_search')
    searches.each do | result_st |
      response = result_st.view_data %>

<%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %>

<%
   end
end
if (holdings.blank? && searches.blank? && ! service_types_in_progress?(['holding', 'holding_search']))
%>

Not Available

<%
end %>

<% if session[:coins] %>

Check for holdings:

<%    session[:coins].each { | coins |
        unless coins[:text]
          label = image_tag(coins[:icon], :border=>0)
        else
          label = coins[:text]
        end
    %>

<a href="<%= coins[:host]%>?<%= @user_request.referent.to_context_object.kev %>" target="_blank"><%= label %>

    <%}%>

<%   end
%>


prevent error on missing file

prevent error on missing file

git-svn-id: 6ed4032d55824b87387cea7ca50eb066630d6e73@160 c93d8143-eb44-0410-8798-7b17b0fd9f9b

Media

<% if @prev_url || @next_url %>
  <%=
  render_template('../pager',
      :prev_url  => @prev_url,
      :next_url  => @next_url,
      :prev_text => '« Newer files',
      :next_text => 'Older files »')
  %>
<% end %>

      Filename
      Size
      Created
      Updated

    <% row = 'even' %>
    <% @files.all do |file| %>
      <tr class="<%= row == 'even' ? row = 'odd' : row = 'even' %>">

          <a href="<%= Rs(:edit, file.id) %>"><%= h(file.filename) %>

        <%= File.exist?(file.path) ? File.size(file.path).filesize_format : '?' %>

          <%= file.created_at(Riposte::Config.timestamp.short) %>

          <%= file.updated_at(Riposte::Config.timestamp.short) %>

    <% end %>

<% if @prev_url || @next_url %>
  <%=
  render_template('../pager',
      :prev_url  => @prev_url,
      :next_url  => @next_url,
      :prev_text => '« Newer files',
      :next_text => 'Older files »')
  %>
<% end %>

Media

<% if @prev_url || @next_url %>
  <%=
  render_template('../pager',
      :prev_url  => @prev_url,
      :next_url  => @next_url,
      :prev_text => '« Newer files',
      :next_text => 'Older files »')
  %>
<% end %>

      Filename
      Size
      Created
      Updated

    <% row = 'even' %>
    <% @files.all do |file| %>
      <tr class="<%= row == 'even' ? row = 'odd' : row = 'even' %>">

          <a href="<%= Rs(:edit, file.id) %>"><%= h(file.filename) %>

        <%= File.size(file.path).filesize_format %>

          <%= file.created_at(Riposte::Config.timestamp.short) %>

          <%= file.updated_at(Riposte::Config.timestamp.short) %>

    <% end %>

<% if @prev_url || @next_url %>
  <%=
  render_template('../pager',
      :prev_url  => @prev_url,
      :next_url  => @next_url,
      :prev_text => '« Newer files',
      :next_text => 'Older files »')
  %>
<% end %>


Tidied up formatting of the task form.

Tidied up formatting of the task form.

<%= error_messages_for 'task' %>

    Task name:
    <%= text_field('task', 'name', :maxlength => 30, :class => 'styled') %>

    Description:

      <%= text_area('task', 'description', :class => 'styled') %>

    Status:

      <%= select('task', 'status', ["active", "inactive"]) %>

    Next due:

      <%= calendar_field 'task', 'next_due',
        { :class => 'date',
        :field_title => 'Next Due Date',
        :button_image => 'calendar.gif',
        :button_title => 'Show calendar' },
        { :firstDay => 1,
        :range => [(Date.today.year) - 1, (Date.today.year) + 1],
        :step => 1,
        :showOthers => false,
        :cache => true,
        :ifFormat => session[:preferred_long_date_format],
        :weekNumbers => false }
    %>

    One-off task:

      <%= check_box('task', 'one_off', 'onchange' => "toggle_recurrence_options();") %> (Tick if this task occurs only once)

  <tr id='recurrence-options' <%= "style='display:none;'" if @task.one_off == true %>>
    Recurrence:
    <% @task.recurrence_interval = 3 if @task.recurrence_interval.nil? %>
    <% @task.recurrence_measure = 'days' if @task.recurrence_measure.nil? %>

        Every <%= text_field('task', 'recurrence_interval', :size => 2, :maxlength => 2) %>
        <%= radio_button('task', 'recurrence_measure', 'days') %>days
        <%= radio_button('task', 'recurrence_measure', 'weeks') %>weeks
        <%= radio_button('task', 'recurrence_measure', 'months') %>months

  <% temp_occur_on = @task.recurrence_occur_on %>

    Can occur on:

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("1") %> value="1" />Monday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("2") %> value="2" />Tuesday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("3") %> value="3" />Wednesday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("4") %> value="4" />Thursday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("5") %> value="5" />Friday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("6") %> value="6" />Saturday

            <input type="checkbox" name="occur_on[]" <%= "checked='checked'" if temp_occur_on.include?("0") %> value="0" />Sunday

Advanced options ...

      Assigned to:

        <select id='task_person_id' name='task[person_id]'>
          <option value=''>Anyone in <%= @team.name %></option>
          <% for membership in @memberships %>
            <% if membership.confirmed == 1 %>

              <% unless membership.person.usertype == 3 # no deleted people! %>

                <% unless @task.person.nil? %>
                  <% if membership.person.id == @task.person.id %>
                    <% @selected = " selected='selected'" %>
                  <% else %>
                    <% @selected = "" %>
                  <% end %>
                <% end %>

                <option value='<%= membership.person.id %>'<%= @selected %>><%= membership.person.name %></option>

              <% end %>

            <% end %>
          <% end %>
        </select>

      Rotating assignment:

        <%= check_box('task', 'rotate') %>

      Default importance:

        <select id="task_default_importance" name="task[default_importance]" class="styled">
          <%= options_from_collection_for_select(@importances, "value", "name", @task.default_importance) %>
        </select>

      Current importance:

        <select id="task_current_importance" name="task[current_importance]" class="styled">
          <%= options_from_collection_for_select(@importances, "value", "name", @task.current_importance) %>
        </select>

    <% temp_task_missed_options = @task.task_missed_options %>

      When task is missed:

        <input type="checkbox" name="task_missed_options[]" <%= "checked='checked'" if temp_task_missed_options.include?("increase_importance") %> value="increase_importance" /> Increase importance

        <input type="checkbox" name="task_missed_options[]" <%= "checked='checked'" if temp_task_missed_options.include?("reschedule") %> value="reschedule" /> Automatically re-schedule (skip)

    <% if @editmode == false %>
      <%= hidden_field('task', 'list_id', :value=>@list.id) %>

    <% elsif @editmode == true %>

        Change list:

          <select id='task_list_id' name='task[list_id]'>
            <%= options_from_collection_for_select(@otherlists, "id", "name", @task.list.id) %>
          </select>

    <% end %>


ActionItem238: fix untranslated message

ActionItem238: fix untranslated message

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

<%= _("%s's pending tasks") % profile.name %>

<% if @tasks.empty? %>
  <%= _('No pending tasks for %s') % profile.name %>
<% else %>

    <% @tasks.each do |item| %>
      <li class="task-<%= item.class %>"><%= render :partial => partial_for_class(item.class), :locals => { :task => item } %>

    <% end %>

<% end %>

<% button_bar do %>
  <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
  <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<% end %>

<%= _("%s's pending tasks") % profile.name %>

<% if @tasks.empty? %>
  <%= _('No pending tasks for %s' % profile.name) %>
<% else %>

    <% @tasks.each do |item| %>
      <li class="task-<%= item.class %>"><%= render :partial => partial_for_class(item.class), :locals => { :task => item } %>

    <% end %>

<% end %>

<% button_bar do %>
  <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
  <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<% end %>


swap site host/title

swap site host/title

<% content_for :action_nav do -%>

<%= link_to "New", :action => "new" %>

  <% form_tag({:action => 'index'}, :method => 'get') do -%>

Search: <%= text_field_tag :search_string, params[:search_string] %>

<input type="submit" value="Go" />

  <% end -%>

<% end %>

<% if @sites.size > 0 %>

      Host
      Title

<% @sites.each do |site| -%>

      <%= link_to(h(site.host), {:action => 'show', :id => site}) %>
      <%=h site.title %>

<% end -%>

<% if @sites.page_count > 1 -%>
  <%= will_paginate @sites, :id => 'pagination' %>
<% end -%>

<% end %>

<% content_for :action_nav do -%>

<%= link_to "New", :action => "new" %>

  <% form_tag({:action => 'index'}, :method => 'get') do -%>

Search: <%= text_field_tag :search_string, params[:search_string] %>

<input type="submit" value="Go" />

  <% end -%>

<% end %>

<% if @sites.size > 0 %>

      Host
      Title

<% @sites.each do |site| -%>

      <%= link_to(site.title, {:action => 'show', :id => site}) %>
      <%=h site.host %>

<% end -%>

<% if @sites.page_count > 1 -%>
  <%= will_paginate @sites, :id => 'pagination' %>
<% end -%>

<% end %>


Arbitrary doctype added to force browsers out of quirksmode.


updated formatting

updated formatting

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

Editing minute

<% form_tag :action => 'update', :id => @minute do %>
  <%= render :partial => 'form' %>
  <%= submit_tag 'Edit' %>
<% end %>

<%= link_to 'Show', :action => 'show', :id => @minute %> |
<%= link_to 'Back', :action => 'list' %>
<%end-%>
<%content_for("right") do-%>
<%end-%>


changes made to correct typo

changes made to correct typo

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@407 392d7b7b-3f31-0410-9dc3-c95a9635ea79

View Review

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

	View review
	Hide review

Reviewed <%= @review.review_num_for_author %> at <%= @review.updated_at.strftime('%A %B %d %Y, %I:%M%p') %>
<%= render :partial => 'review/score1' %>
Additional Comment : <%=@review.additional_comment%>

<%
review_feedback = ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", @review.id, @assgt.id])
if(review_feedback) %>

View author feedback

Hide author feedback

<% @review_scores1 = ReviewScore.find(:all,:conditions =>["review_id =? AND questionnaire_type_id = ?", review_feedback.id, QuestionnaireType.find_by_name("Author Feedback").id])
%>

Author feedback:

<%= render :partial => 'review/score1' %>
Additional Comment:
<%=review_feedback.additional_comment%>

<% end%>

View Review

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

	View review
	Hide review

Reviewed <%= @review.review_num_for_author %> at <%= @review.updated_at.strftime('%A %B %d %Y, %I:%M%p') %>
<%= render :partial => 'review/scores' %>
Additional Comment : <%=@review.additional_comment%>

<%
review_feedback = ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", @review.id, @assgt.id])
if(review_feedback) %>

View author feedback

Hide author feedback

<% @review_scores1 = ReviewScore.find(:all,:conditions =>["review_id =? AND questionnaire_type_id = ?", review_feedback.id, QuestionnaireType.find_by_name("Author Feedback").id])
%>

Author feedback:

<%= render :partial => 'review/score1' %>
Additional Comment:
<%=review_feedback.additional_comment%>

<% end%>