remove lame list caching

remove lame list caching

git-svn-id: 63e5431e33a10c4701b329fb6d8e0744110cb91e@122 c2b4ead4-481d-0410-ac63-b02590f85e3f

BBC 'Have Your Say' Threads

Details	Comments	Censored

<% @threads.each do |t| -%>

<%= link_to h(CGI.unescapeHTML(t.title)), :action => :show, :id => t.bbcid %>

Started: <%= t.created_at.to_date %>, Last updated <%= t.updated_at.to_s(:long) %>

<%= t.published_count %>
<%= t.censored_count %>

<% end -%>

<%= render_partial 'partials/paginator', @threads_pages %>

BBC 'Have Your Say' Threads

Details	Comments	Censored

<% cache("thread_list_" + @threads.collect { |t| [t.id, t.updated_at, t.published_count, t.censored_count] }.hash.to_s) do -%>
<% @threads.each do |t| %>

<%= link_to h(CGI.unescapeHTML(t.title)), :action => :show, :id => t.bbcid %>

Started: <%= t.created_at.to_date %>, Last updated <%= t.updated_at.to_s(:long) %>

<%= t.published_count %>
<%= t.censored_count %>

<% end %>
<% end -%>

<%= render_partial 'partials/paginator', @threads_pages %>


Text tweaks.

Text tweaks.

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Design the site - the current appearance is purely placeholder.

 Find a name for the site - suggestions to us please.

 Add search, plus RSS feeds and email alerts based on search terms.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or commision us!

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Design the site - the current appearance is purely placeholder.

 Find a name of the site - suggestions to us please.

 Add search, plus RSS feeds and email alerts based on search terms.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or contact us!


Minor adjustment to banner height (not sure about font though)

h1, h2, h3 {
    color: #1B1C6A;
}

#topnav ul li a,
div.frontpage-box {
    color: #1B1C6A !important;
    <!-- font-family: 'DeliciousRoman',Arial,sans-serif; -->
}

#banner {
    background: url(/asktheeu-theme/images/stripes.png);
    border: none;
    height: 155px;
}

#logo {
    position: absolute;
    top: 20px;
}

div.frontpage-box,
#stepwise_make_request {
    background: url(/asktheeu-theme/images/stripes.png);
}

body {
    font-family: Helvetica, Arial;
    font-size: 13px;
}

#banner_inner {
    font-size: 14px;
    font-weight: bold;
}

div.lang {
    top: 50px;
}

h1, h2, h3 {
    color: #1B1C6A;
}

#topnav ul li a,
div.frontpage-box {
    color: #1B1C6A !important;

}

#banner {
    background: url(/asktheeu-theme/images/stripes.png);
    border: none;
    height: 160px;
}

#logo {
    position: absolute;
    top: 20px;
}

div.frontpage-box,
#stepwise_make_request {
    background: url(/asktheeu-theme/images/stripes.png);
}

body {
    font-family: Helvetica, Arial;
    font-size: 13px;
}

#banner_inner {
    font-size: 14px;
    font-weight: bold;
}

div.lang {
    top: 50px;
}


Missed one notification message to enhance

(ActionItem1610)

<%= _('Hello %s,') % @target %>

<%= word_wrap(@message) %>

<%= word_wrap(_('Access your list of tasks or your control panel to see this and other pending actions that need your attention.')) %>
<%= @tasks_url %>

--
<%= _('%s team.') % @environment %>
<%= @url %>

<%= _('Hello %s,') % @target %>

<%= word_wrap(@message) %>

<%= word_wrap(_('Access your list of tasks or your control panel to see this and other pending actions that need your attention.')) %>
<%= @tasks_url %>

--
<%= @environment %>
<%= @url %>


Undo change I accidently made.

Undo change I accidently made.

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

<% @page_heading = 'Articles' %>

Creating article

  <%= start_form_tag({ :action => "new" }, :id => "article_form", :enctype => "multipart/form-data") %>

    <%= render_partial "form" %>

    <%= save("Save this article") %> or <%= cancel %>

  <%= end_form_tag %>

  <%= observe_form "article_form",
        :frequency => 2,
        :update => "preview",
        :complete => "Element.show('preview')",
        :url => { :action => "preview" } %>

<% @page_heading = 'Articles' %>

Creating article

  <%= start_form_tag({ :action => "new" }, :id => "contact_form", :enctype => "multipart/form-data") %>

    <%= render_partial "form" %>

    <%= save("Save this article") %> or <%= cancel %>

  <%= end_form_tag %>

  <%= observe_form "article_form",
        :frequency => 2,
        :update => "preview",
        :complete => "Element.show('preview')",
        :url => { :action => "preview" } %>


sanitize html in comments displayed in the overview [xal]

git-svn-id: 4158f9403e16ea83fe8a6e07a45f1f3b56a747ab@1171 567b1171-46fb-0310-a4c9-b4bef9110e78

<li class="event-comment<%= " shade" if shaded %>">
  <%= event_time_for event, later %>

<%= truncate strip_tags(event.body), 100 %>

  <%= link_to h(event.title), :controller => 'articles', :action => 'show', :id => event.article_id %> was commented on.
  by <%=h event.author %>

<li class="event-comment<%= " shade" if shaded %>">
  <%= event_time_for event, later %>

<%= truncate event.body, 100 %>

  <%= link_to h(event.title), :controller => 'articles', :action => 'show', :id => event.article_id %> was commented on.
  by <%=h event.author %>


New question

New question

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

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 Commisioner'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 respones 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 Commisioner 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).

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. In particular, we
will remove remarks that are irrelevantly personal.

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 are welcome to 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'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.

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

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

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. In particular, we
will remove remarks that are irrelevantly personal.

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 are welcome to 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.


Indentation(!)

Indentation(!)

It is not right to treat structural indentation with such contempt.
Consistent indentation is all that stands between us and the unfathomable
chaos of the fiery deep.

<% @title = _("FOI request - {{title}}", :title => h(@info_request.title)) %>

<%=@title%>

<% form_tag '../move_request', { :class => "form form-horizontal" } do %>
  <%= hidden_field_tag 'info_request_id', @info_request.id %>

        <a href="#metadata_<%=@info_request.id%>" data-toggle="collapse" data-parent="info_request">Show metadata

    <div id="metadata_<%=@info_request.id%>" class="accordion-body collapse">

          <% @info_request.for_admin_column do |name, value, type, column_name|%>

                <%= name %>:

                <% if type == 'datetime' %>
                  <%= I18n.l(value, :format => "%e %B %Y %H:%M:%S") %>
                  (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(value)) %>)
                <% else %>
                  <%= h value %>
                <% end %>
                <% if column_name == 'described_state' %>

Initial request last sent at: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>

Date response required by: <%= @info_request.date_response_required_by %>

Very overdue after: <%= @info_request.date_very_overdue_after %>

                <% end %>

          <% end %>

              Created by

              <%= link_to("".html_safe, user_url(@info_request.user), :title => "view user's page on public website") %>
              <%= link_to(@info_request.user.name, user_admin_url(@info_request.user)) %>
              <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                url_name of new user:
                <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
                <%= submit_tag "Move request to user", :class => "btn btn-info" %>

              Public authority:

              <%= link_to("".html_safe, public_body_url(@info_request.public_body), :title => "view authority on public website") %>
              <%= link_to(@info_request.public_body.name, public_body_admin_url(@info_request.public_body)) %>
              <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                url_name of new authority:
                <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
                <%= submit_tag "Move request to authority", :class => "btn btn-info" %>

              <%=_("Incoming email address")%>

              <%= link_to h(@info_request.incoming_email), "mailto:#{@info_request.incoming_email}" %>

              <%=_("Tags")%>

              <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>

<% end %>
<formset class="form-horizontal">
  <legend>Actions</legend>

      Other views of this request

      <%= link_to 'Public page', main_url(request_url(@info_request)), :class => "btn" %>
      <%= link_to 'Edit page', '../edit/' + @info_request.id.to_s, :class => "btn" %>

      FOI officer upload URL

      <%= link_to 'Generate URL', '../generate_upload_url/' + @info_request.id.to_s, :class => "btn" %>

(see also option to general URLs for individual incoming messages below)

  <% form_tag '../hide/' + @info_request.id.to_s, :class => "form form-inline", :info_request_id => @info_request.id.to_s, :id => "hide_request_form" do %>

      Hide the request and notify the user:

        <% if ['hidden', 'requester_only'].include? @info_request.prominence %>

This request has already been hidden

        <% else %>

            <%= radio_button_tag "reason", "not_foi" %> <%= _("Not a valid FOI request") %>

            <%= radio_button_tag "reason", "vexatious" %> <%= _("A vexatious request") %>

        <% end %>

    <% if !['hidden', 'requester_only'].include? @info_request.prominence %>

        Subject of email:

          <%= text_field_tag "subject", "Your request on WhatDoTheyKnow.com hidden", {:id => "request_hidden_user_subject_field", :cols => 100} %>

        Reason for hiding the request (will be emailed to user):

          <%= text_area_tag "explanation", h(@request_hidden_user_explanation), {:id => "request_hidden_user_explanation_field"} %>

        <%= submit_tag _("Hide request"), :class => "btn" %>

    <% end %>
  <% end %>
</formset>

Events

  <% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>

        <a href="#event_<%=info_request_event.id%>" data-toggle="collapse" data-parent="requests">
          <%= _("Event {{id}}", :id => info_request_event.id) %>:

            <%=h info_request_event.event_type.humanize %><% if !info_request_event.calculated_state.nil? %>; state: <%= info_request_event.calculated_state %><% end %>

            <%= info_request_event.created_at%>

      <div id="event_<%=info_request_event.id%>" class="accordion-body collapse">

                <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
                  <% form_tag '../mark_event_as_clarification', :class => "form form-inline admin-table-form admin-inline-form" do %>
                    <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
                    <%= submit_tag "Was clarification request", :class => "btn btn-mini btn-primary" %>
                  <% end %>
                <% end %>

            <% info_request_event.for_admin_column do |name, value, type, column_name| %>

                  <%=h name%>

                  <% if column_name == 'params_yaml' %>
                    <%= info_request_event.params_yaml_as_html %>
                  <% elsif value.nil? %>
                    nil
                  <% elsif %w(text string).include?(type) %>
                    <%=h value.humanize %>
                  <% elsif type == 'datetime' %>
                    <%= admin_date value %>
                  <% else %>
                    <%=h value %>
                  <% end %>

            <% end %>

  <% end %>

Outgoing messages

  <% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>

        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="requests">
        <a href="../edit_outgoing/<%= outgoing_message.id %>" data-toggle="collapse" data-parent="outgoing_messages">
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>

          <%= truncate(outgoing_message.body, :length => 400) %>

      <div id="outgoing_<%=outgoing_message.id%>" class="accordion-body collapse">

                <% form_tag '../resend', :class => "admin-table-form" do %>
                  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
                  <%= submit_tag "Resend", :class => "btn" %>
                <% end %>

            <% outgoing_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name == 'body' %>
                    <%= simple_format(truncate(outgoing_message.body, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden" ))) %>

<%= simple_format( outgoing_message.body ) %>

                  <% else %>
                    <%= admin_value(value) %>
                  <% end %>

            <% end %>

  <% end %>

Incoming messages

  <% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>

        <a href="#incoming_<%=incoming_message.id%>" data-toggle="collapse" data-parent="requests">
        <%=incoming_message.id%> -- <%= h(incoming_message.mail_from) %> <%=_("at")%> <%=admin_value(incoming_message.sent_at)%>

          <% if !incoming_message.cached_main_body_text_folded.nil? %>
            <%= truncate(incoming_message.cached_main_body_text_folded.gsub('FOLDED_QUOTED_SECTION', ''), :length => 400) %>
          <% end %>

      <div id="incoming_<%=incoming_message.id%>" class="accordion-body collapse">

                <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

            <% incoming_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name =~ /^cached_.*?$/ %>
                    <%= simple_format( truncate(value, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden"))) %>

<%= simple_format(value) %>

                  <% else %>
                    <%= simple_format(value) %>
                  <% end %>

            <% end %>

  <% end %>

Annotations

<% if @info_request.comments.size > 0 %>

    <% for comment in @info_request.comments %>

         <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="requests">
          <a href="../edit_comment/<%= comment.id %>">
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>

            <%= truncate(comment.body, :length => 400) %>

        <div id="comment_<%=comment.id%>" class="accordion-body collapse">

                 By <%= link_to("".html_safe, user_url(comment.user), :title => "view user's page on public website") %>

                  <%= link_to(h(comment.user.name), user_admin_url(comment.user)) %>

              <% comment.for_admin_column do |name, value, type, column_name |%>

                    <%=name%>

                    <% if column_name == 'body' && !comment.visible %>
                      <s><%=h comment.send(column_name) %></s>
                    <% else %>
                      <%=h comment.send(column_name) %>
                    <% end %>

              <% end %>

    <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>


Corrected label

Corrected label

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

<%= render_partial "article", @article %>

<% if @article.allow_comments > 0 %>

<%= responses(@article.comments, "response") %> to '<%=h @article.title  %>'

    Leave a response

    <%= render_collection_of_partials "comment", @article.comments %>

<% end %>

<% if @article.allow_pings > 0 %>

<%= responses(@article.trackbacks, "trackback") %> to '<%=h @article.title  %>'

    Use the following link to trackback from your own site:

           <%= server_url_for :controller=>"articles", :action=>"trackback", :id=>@article.id %>

    <%= render_collection_of_partials "trackback", @article.trackbacks %>

<% end %>

<% if @article.allow_comments > 0 %>
<%= start_form_tag :action => "comment", :id=> @article.id %>

  write a comment....

        <%= render_errors(@comment) %>

  	   	author

  	  	<%= text_field "comment", "author" %>

  	  	email

  	  	<%= text_field "comment", "email" %>

  	  	url

  	    <%= text_field "comment", "url" %>

  	  	Body

  	  	<%= text_area "comment", "body", "style"=> "width:300px;height:250px" %>

  		<input type="submit" name="submit" value="submit" class="button" />

<% end %>
<%= end_form_tag %>


show proper display text for docdel targets, using new enhanced design for deriving such

<%
if genre = @user_request.referent.metadata['genre']
	type = genre.capitalize+'s'
else
	type = 'Resources'
end
%>

Finding <%=type%>

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

Electronic version  via:

<% fulltxt = get_service_type('fulltext').each do | ft |
    target = ft.service_response.service.to_fulltext(ft.service_response)
%>

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

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

<%= target[:coverage] %>
<% end
%>
<% unless target[:note].blank? %>

<%= target[:note] %>
<% end
%>

<%
end

if fulltxt.empty?
%>

Not Available

<%
end
%>

Paper version  via:

<%
src = ""
holdings = get_service_type('holding').each do |p|
  target = p.service_response.service.to_holding(p.service_response)
  if src != target[:source_name]
  %>

<%= target[:source_name] %>

  <%
  src = target[:source_name]
  end
  if target[:call_number] == ""
  	display_text = target[:display_text]
  else
  	display_text = target[:call_number]
  end
  %>

<%= link_to display_text, {:controller=>'link_router', :id=>p.id}, 'target'=>'_blank' %>

<%
    unless display_text == target[:display_text]%>

<%= target[:display_text] %>
    <% end
    if target.has_key?(:status)%>

      <% if target[:status] == "Not Charged" or target[:status] == "Available" %>
      <%= target[:status].sub(/Not Charged/, "Available")%>
      <% else %>
      <%= target[:status] %>
      <% end %>

      <%
      end%>

  <%

  end
  %>

<%
if holdings.empty?
    unless title_search = search_opac_for_title(@user_request)
%>

Not Available

<%
else %>

<%= title_search -%>

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

<% if display_ill?
%>

Request a copy via:

<% get_service_type('document_delivery').each do | doc_del_type |

    valueHash = doc_del_type.view_data_from_service_type

    if @user_request.referent.format == 'journal'
        #valueHash[:url].sub!(/genre=[^\&]*/, 'genre=article')
    end

    %>

valueHash? <%= valueHash.keys %> <%= link_to valueHash[:display_text], {:controller=>'link_router', :id=>doc_del_type.id}, 'target'=>'_blank'%>

<% end %>

<% end %>

<%
unless get_service_type('relevant links').empty? %>

Closest Web Results:  [<%= link_to_function "hide", "activelyHideWebResults()"%>]

<% get_service_type('relevant links').each do |web|
   target = web.service.to_web_link
%>

<%= link_to target[:title], {:controller=>'link_router', :id=>web.id}, 'target'=>"_blank"%>

<%= target[:description] %>
<%
end %>

[<%= link_to_function "Show closest web results", "activelyShowWebResults()"%>]

<% end %>

  <%= render :partial=>"menu" %>
  <%= render :partial=>"highlighted_links_start" %>

<%
if genre = @user_request.referent.metadata['genre']
	type = genre.capitalize+'s'
else
	type = 'Resources'
end
%>

Finding <%=type%>

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

Electronic version  via:

<% fulltxt = get_service_type('fulltext').each do | ft |
    target = ServiceList.get(ft.service_response.service_id).to_fulltext(ft.service_response)
%>

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

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

<%= target[:coverage] %>
<% end
%>
<% unless target[:note].blank? %>

<%= target[:note] %>
<% end
%>

<%
end

if fulltxt.empty?
%>

Not Available

<%
end
%>

Paper version  via:

<%
src = ""
holdings = get_service_type('holding').each do |p|
  target = ServiceList.get(p.service_response.service_id).to_holding(p.service_response)
  if src != target[:source_name]
  %>

<%= target[:source_name] %>

  <%
  src = target[:source_name]
  end
  if target[:call_number] == ""
  	display_text = target[:display_text]
  else
  	display_text = target[:call_number]
  end
  %>

<%= link_to display_text, {:controller=>'link_router', :id=>p.id}, 'target'=>'_blank' %>

<%
    unless display_text == target[:display_text]%>

<%= target[:display_text] %>
    <% end
    if target.has_key?(:status)%>

      <% if target[:status] == "Not Charged" or target[:status] == "Available" %>
      <%= target[:status].sub(/Not Charged/, "Available")%>
      <% else %>
      <%= target[:status] %>
      <% end %>

      <%
      end%>

  <%

  end
  %>

<%
if holdings.empty?
    unless title_search = search_opac_for_title(@user_request)
%>

Not Available

<%
else %>

<%= title_search -%>

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

<% if display_ill?
%>

Request a copy via:

<% get_service_type('document_delivery').each do | doc_del |

    if @user_request.referent.format == 'journal'
        #doc_del[:url].sub!(/genre=[^\&]*/, 'genre=article')
    end
    %>

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

<% end %>

<% end %>

<%
unless get_service_type('relevant links').empty? %>

Closest Web Results:  [<%= link_to_function "hide", "activelyHideWebResults()"%>]

<% get_service_type('relevant links').each do |web|
   target = web.service.to_web_link
%>

<%= link_to target[:title], {:controller=>'link_router', :id=>web.id}, 'target'=>"_blank"%>

<%= target[:description] %>
<%
end %>

[<%= link_to_function "Show closest web results", "activelyShowWebResults()"%>]

<% end %>

  <%= render :partial=>"menu" %>
  <%= render :partial=>"highlighted_links_start" %>


cage now shows why bat was put in this cage

Name: <%= @cage.name %>

Owner: <%= @cage.user ? @cage.user.name : 'NP' %>

Room: <%= @cage.room %>

Date created: <%= nice_date @cage.date_created %>

<% if @cage.date_destroyed != nil %>

Date destroyed: <%= nice_date @cage.date_destroyed %>

<% end %>

  Current Bats:

  Band
  Last Weight
  Weigh Date
  Date in
  Who
  Why
  <% for bat in @cage.bats %>
    <% cih = bat.cage_in_histories %>
    <% if cih %>
    <%      @date_in = cih[0].date %>
    <%      @sig = cih[0].user.initials %>
    <%      @why = cih[0].note %>
    <% else %>
    <%      @date_in ="" %>
    <%      @sig = "" %>
    <%      @why = "" %>
    <% end %>

    <%= link_to bat.band, :controller => 'bats', :action => 'show', :id => bat %>
    <% if bat.weights.length > 0 %>
          <%=h bat.weights[0].weight %>
          <%=h nice_date bat.weights[0].date %>
    <% else %>
          N/A
          N/A
    <% end %>
    <%=h nice_date @date_in %>
    <%=h @sig %>
    <%=h @why %>

  <% end %>

  Past Bats:

  Band
  Date in
  Who
  Date out
  Who
  <% for coh in @cohs %>

    <%=link_to coh.bat.band, :controller => 'bats', :action => 'show', :id => coh.bat %>
    <%=h nice_date coh.cage_in_history.date %>
    <%=h coh.cage_in_history.user.initials %>
    <%=h nice_date coh.date %>
    <%=h coh.user.initials %>

  <% end %>

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

Name: <%= @cage.name %>

Owner: <%= @cage.user ? @cage.user.name : 'NP' %>

Room: <%= @cage.room %>

Date created: <%= nice_date @cage.date_created %>

<% if @cage.date_destroyed != nil %>

Date destroyed: <%= nice_date @cage.date_destroyed %>

<% end %>

  Current Bats:

  Band
  Date in
  Who
  Last Weight
  Weigh Date
  <% for bat in @cage.bats %>
    <% cih = bat.cage_in_histories %>
    <% if cih %>
    <%      @date_in = cih[0].date %>
    <%      @sig = cih[0].user.initials %>
    <% else %>
    <%      @date_in ="" %>
    <%      @sig = "" %>
    <% end %>

    <%= link_to bat.band, :controller => 'bats', :action => 'show', :id => bat %>
    <%=h nice_date @date_in %>
    <%=h @sig %>
    <% if bat.weights.length > 0 %>
          <%=h bat.weights[0].weight %>
          <%=h nice_date bat.weights[0].date %>
    <% else %>
          N/A
          N/A
    <% end %>

  <% end %>

  Past Bats:

  Band
  Date in
  Who
  Date out
  Who
  <% for coh in @cohs %>

    <%=link_to coh.bat.band, :controller => 'bats', :action => 'show', :id => coh.bat %>
    <%=h nice_date coh.cage_in_history.date %>
    <%=h coh.cage_in_history.user.initials %>
    <%=h nice_date coh.date %>
    <%=h coh.user.initials %>

  <% end %>

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


ActionItem556: fixing user menu

ActionItem556: fixing user menu

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

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

<% if logged_in? %>

    <img src="<%=
    (current_user.person.image)?
    current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
    %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
    <%= _("%s's Menu") % current_user.person.display_name %>

<a href="<%= homepage_path(:profile => current_user.login) %>"
             help="<%= _('Go to your home page.') %>"
             ><%= _('My Home Page') %>

      <% if MailConf.enabled? && current_user.enable_email %>

        <%= link_to '' + _('Webmail'), MailConf.webmail_url %>

      <% end %>

<%= link_to_myprofile( ''+ _('Control panel'),
                                   {}, nil, :id => 'link_edit_profile',
                                   :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')
                               ) %>

      <%=
        '
'+ link_to( ''+ _('Admin'),
                         { :controller => 'admin_panel' }, :id => 'link_admin_panel',
                         :help => _('Access the site administration panel.')
                       ) +
        '
' if user.is_admin?
      %>

<%= link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout'},
                                :id => 'link_logout',
                                :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                              ) %>

<% else %>

<%= lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login',
                     :help => _('Click here to enter your username and password and be recognized by the system.') %>

<% end %>

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

<% if logged_in? %>

    <img src="<%=
    (current_user.person.image)?
    current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
    %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
    <%= _("%s's Menu") % current_user.display_name %>

<a href="<%= homepage_path(:profile => current_user.login) %>"
             help="<%= _('Go to your home page.') %>"
             ><%= _('My Home Page') %>

      <% if MailConf.enabled? && current_user.enable_email %>

        <%= link_to '' + _('Webmail'), MailConf.webmail_url %>

      <% end %>

<%= link_to_myprofile( ''+ _('Control panel'),
                                   {}, nil, :id => 'link_edit_profile',
                                   :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')
                               ) %>

      <%=
        '
'+ link_to( ''+ _('Admin'),
                         { :controller => 'admin_panel' }, :id => 'link_admin_panel',
                         :help => _('Access the site administration panel.')
                       ) +
        '
' if user.is_admin?
      %>

<%= link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout'},
                                :id => 'link_logout',
                                :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                              ) %>

<% else %>

<%= lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login',
                     :help => _('Click here to enter your username and password and be recognized by the system.') %>

<% end %>


adding in google analytics code

adding in google analytics code

---
extension: html
filter:    erb
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">

     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
     <title>Datamapper - <%= @page.title %></title>
     <link rel="stylesheet" href="/css/site.css" type="text/css" media="screen, projection" />
     <link rel="stylesheet" href="/css/coderay.css" type="text/css" media="screen, projection" />

  <body id="<%= @page.body_id %>">

DataMapper

Why DataMapper?

Community

Docs & Dev

Tickets

Wiki

Get DataMapper

      <%= @content %>

Copyright Sam Smoot <%= Time.now.year %>

Web Design by Luke Matthew Sutton - Community Maintained

---
extension: html
filter:    erb
---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "DTD/xhtml1-strict.dtd">

     <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
     <title>Datamapper - <%= @page.title %></title>
     <link rel="stylesheet" href="/css/site.css" type="text/css" media="screen, projection" />
     <link rel="stylesheet" href="/css/coderay.css" type="text/css" media="screen, projection" />

  <body id="<%= @page.body_id %>">

DataMapper

Why DataMapper?

Community

Docs & Dev

Tickets

Wiki

Get DataMapper

      <%= @content %>

Copyright Sam Smoot 2007

Web Design by Luke Matthew Sutton - Community Maintained


Link "powered by" to the source code

Link "powered by" to the source code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

  <title><%= render :partial => "/sites/#{@style}/title" %><%=h ": " + @pagename if not @pagename.blank? %><%=h ": " + @content_for_pagename if not @content_for_pagename.blank? %></title>
  <%= stylesheet_link_tag 'common/common', @style %>
  <%= javascript_include_tag :defaults %>
  <%= active_scaffold_includes %>

  <%= yield :feed %>
  <link rel="shortcut icon" href="/images/<%= @style %>/favicon.ico" />
  <meta name="Keywords" content="carbon calculator, carbon footprint, climate change, global warming"/>
  <meta name="Description" content="Saving the planet, together! Calculate your daily carbon footprint, take action to reduce it, and share it with your friends!"/>
  <meta name="Author" content="James Smith"/>

<% unless params[:controller] == "main" and params[:action] == "index" %>

  <% if @current_user.nil? %>
    <%= image_tag 'user.png' %>
    <%= link_to("Log In or Sign Up", { :controller => "/main", :action => "index" } ) %>
  <% else %>
    <%= image_tag @current_user.image %>
    <%= image_tag @current_user.flag %>
    <%= link_to h(@current_user.name), :controller => '/profile', :login => @current_user.login %>

    <%= link_to("Settings", { :controller => "/user", :action => "edit" } ) %>
    <%= link_to("Log Out", { :controller => "/user", :action => "logout" } ) %>
  <% end %>

<% end %>

<%= whitelabel_content 'header' %>

<%= render :partial => "/sites/#{@style}/linkbar" %>

<% if flash[:notice] %>

<%=h flash[:notice] %>

<% end %>

<% if @content_for_optionbar %>

  <%= yield :optionbar %>

<% end %>

<% unless (@pagename.nil? or @pagename.blank?) and @content_for_pagename.nil? %>

        <%= @content_for_pageicon unless @content_for_pageicon.nil? %>
        <%=h @content_for_pagename || @pagename %>

<% end %>
<%= yield %>

powered by The Carbon Diet: version 0.10.2


Added version number to page title

Added version number to page title

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

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Twitter4R - Open Source Ruby Project Code Coverage (RCov C0)</title>
    <meta type="keywords" content="twitter4r, twitter, rest, api, open source, oss, open source software, open source project, rubyforge, code coverage, c0 code coverage, code metrics"/>
    <link href="../stylesheets/site.css" type="text/css" media="screen" rel="stylesheet"/>
    <link rel="shortcut icon" href="favicon.ico" />

Documentation

Twitter4R: RDoc

Twitter4R: RCov

Project Links

MIT License

Rubyforge: Forums

Rubyforge: Files

Retrospectiva: Blog

Retrospectiva: Wiki

Retrospectiva: Tickets

Twitter4R v<%= version %>

Simple Pure Ruby API for Twitter

Code Coverage Metrics (C0)

        <% unless index %>
          [Back to coverage index]
        <% end %>

<%= legend_content %>

        <%= table_content %>

<%= code_content %>

© Copyright 2006-2007 Susan Potter.  All rights reserved.

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

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title>Twitter4R - Open Source Ruby Project Code Coverage (RCov C0)</title>
    <meta type="keywords" content="twitter4r, twitter, rest, api, open source, oss, open source software, open source project, rubyforge, code coverage, c0 code coverage, code metrics"/>
    <link href="../stylesheets/site.css" type="text/css" media="screen" rel="stylesheet"/>
    <link rel="shortcut icon" href="favicon.ico" />

Documentation

Twitter4R: RDoc

Twitter4R: RCov

Project Links

MIT License

Rubyforge: Forums

Rubyforge: Files

Retrospectiva: Blog

Retrospectiva: Wiki

Retrospectiva: Tickets

Twitter4R

Simple Pure Ruby API for Twitter

Code Coverage Metrics (C0)

        <% unless index %>
          [Back to index]
        <% end %>

        <%= legend_content %>
        <%= table_content %>
        <%= code_content %>

© Copyright 2006-2007 Susan Potter.  All rights reserved.