Some more help improvements.

Some more help improvements.

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

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?

It is good practice for the public authority to reply to an anonymous 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.

However, there are good reasons to use your real name: see the question
above.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

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, then please contact
us.

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

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

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

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?

It is good practice for the public authority to reply to an anonymous 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.

However, there are good reasons to use your real name: see the question
above.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

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, then please contact
us.

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 got 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 copyright 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?

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

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


don't show Cost if there is no info

don't show Cost if there is no info

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/graysky/tourbus.git/'


Create _list.rhtml

Create _list.rhtml

<%= header_section %>
  <title>登録一覧</title>

<%= body_section %>

登録一覧

    <% if @month > 1 then %>
    <a href="<%=h make_uri( @request.merge({:year=>@year, :month=>(@month - 1)}) ) %>">≪前月
    <% else %>
    <a href="<%=h make_uri( @request.merge({:year=>(@year - 1), :month=>12}) ) %>">≪前月
    <% end %>
    <%=h @year %>年<%=h @month %>月
    <a href="<%=h make_uri( @request.merge({:year=>@year, :month=>(@month + 1)}) ) %>">翌月≫

    <a href="<%=h make_uri( @request.merge({:year=>Time.now.year(), :month=>Time.now.month()}) ) %>">今月 |

    <a href="<%=h make_uri( :action=>"create" ) %>">新規登録 |
    <a href="<%=h make_uri( :action=>"csv", :year=>@year, :month=>@month ) %>" target="_blank">CSV

      <% @columns.each do |k| %>
      <%=h @form.widgets[k].label %>
      <% end %>

    <% @datas.each do |d| %>

      <% @columns.each do |k| %>
      <%= @form.widgets[k].make_value( d[k] ) %>
      <% end %>

	<a href="<%=h make_uri_key(d, :action=>"update") %>">変更
	<a href="<%=h make_uri_key(d, :action=>"delete") %>">削除

    <% end %>

<%= footer_section %>

error: pathspec 'views/guestcard/_list.rhtml' did not match any file(s) known to git


Maybe too verbose, but you do need to see the body and user of a request for annotation events, as they often represent the whole request.

<% if @highlight_words.nil?
      @highlight_words = []
end %>

        <% if not event.incoming_message.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), incoming_message_url(event.incoming_message) %>
        <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(info_request.title, @highlight_words), outgoing_message_url(event.outgoing_message) %>
        <% elsif not event.comment.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), comment_url(event.comment) %>
        <% else %>
            <%= link_to highlight_words(info_request.title, @highlight_words), request_url(info_request) %>
        <% end %>

        <%= highlight_and_excerpt(event.search_text_main, @highlight_words, 150) %>

    <span class="bottomline icon_<%= info_request.calculate_status %>">

        <%= info_request.display_status %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Follow up sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response
            <% else %>
                <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'comment' %>
            Annotation by <%= user_link(event.comment.user) %>
            on request to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>
        on <%= simple_date(event.created_at) %>.

<% if @highlight_words.nil?
      @highlight_words = []
end %>

        <% if not event.incoming_message.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), incoming_message_url(event.incoming_message) %>
        <% elsif not event.outgoing_message.nil? and event.event_type == 'followup_sent' %>
            <%= link_to highlight_words(info_request.title, @highlight_words), outgoing_message_url(event.outgoing_message) %>
        <% elsif not event.comment.nil? %>
            <%= link_to highlight_words(info_request.title, @highlight_words), comment_url(event.comment) %>
        <% else %>
            <%= link_to highlight_words(info_request.title, @highlight_words), request_url(info_request) %>
        <% end %>

        <%= highlight_and_excerpt(event.search_text_main, @highlight_words, 150) %>

    <span class="bottomline icon_<%= info_request.calculate_status %>">

        <%= info_request.display_status %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'followup_sent' %>
            Follow up sent to <%= public_body_link(info_request.public_body) %>
            by <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'response' %>
            <% if event.calculated_state.nil? %>
                Response
            <% else %>
                <%=event.display_status %>
            <% end %>
            by <%= public_body_link(info_request.public_body) %>
            to <%= user_link(info_request.user) %>
        <% elsif event.event_type == 'comment' %>
            Annotation by <%= user_link(event.comment.user) %>
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>
        on <%= simple_date(event.created_at) %>.


Remove leading space - seems to be causing test failures, although not a problem in app itself.

<%# TODO: Cache for 5 minutes %>

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

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

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

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

<% # TODO: Cache for 5 minutes %>

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

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

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

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


Spell checker for followups.

Spell checker for followups.

    <% if incoming_message.nil? %>

Send a follow up message
        to '<%=h @info_request.public_body.name %>'

    <% else %>

Send a follow up message
            <% if !incoming_message.safe_mail_from.nil? %>
                to <%= incoming_message.safe_mail_from %>
            <% end %>

    <% end %>

    <% if @info_request.stop_new_responses %>

Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are <%= user_link(@info_request.user) %>
        and need to send a follow up.

    <% else %>

Use this to tell the public authority something, such as to clarify
        your request, or if they are late responding.

Please do not make new requests here.
        If you are asking for information which was not in your original request, then
        <%= link_to "file a new request", new_request_to_body_url(:public_body_id => @info_request.public_body.id.to_s) %>
        instead.

        <% if @info_request.calculate_status == 'waiting_response_overdue' %>

This request is currently overdue a response from <%=
            public_body_link(@info_request.public_body) %>.
            By law, the response had to be made no later than
            <%= simple_date(@info_request.date_response_required_by) %>
            (<%= link_to "more info", about_url + "#quickly_response" %>). You can say
            that under the <%=h(@info_request.law_used_act)%> they should have replied by now,
            and are breaking the law.

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 10, :cols => 55 %>

                Privacy warning: Your follow up message, and any response
                to it, will also be displayed publically on this website.

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <%= submit_tag "Preview your follow up message" %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>

    <% if incoming_message.nil? %>

Send a follow up message
        to '<%=h @info_request.public_body.name %>'

    <% else %>

Send a follow up message
            <% if !incoming_message.safe_mail_from.nil? %>
                to <%= incoming_message.safe_mail_from %>
            <% end %>

    <% end %>

    <% if @info_request.stop_new_responses %>

Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are <%= user_link(@info_request.user) %>
        and need to send a follow up.

    <% else %>

Use this to tell the public authority something, such as to clarify
        your request, or if they are late responding.

Please do not make new requests here.
        If you are asking for information which was not in your original request, then
        <%= link_to "file a new request", new_request_to_body_url(:public_body_id => @info_request.public_body.id.to_s) %>
        instead.

        <% if @info_request.calculate_status == 'waiting_response_overdue' %>

This request is currently overdue a response from <%=
            public_body_link(@info_request.public_body) %>.
            By law, the response had to be made no later than
            <%= simple_date(@info_request.date_response_required_by) %>
            (<%= link_to "more info", about_url + "#quickly_response" %>). You can say
            that under the <%=h(@info_request.law_used_act)%> they should have replied by now,
            and are breaking the law.

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 10, :cols => 55 %>

                Privacy warning: Your follow up message, and any response
                to it, will also be displayed publically on this website.

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <%= submit_tag "Preview your follow up message" %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>


Partialized the display of the weighing tasks for a cage.

Weighing tasks

<% if @tasks.length == 0 %>
No weighing tasks.
<% else %>

    Who
    When
    Last done
<% for task in @tasks %>

       <% for user in task.users %>
      <%= user.name %>

      <% end %>

      <%= task.repeat == 0 ? "Daily" : '' %>
      <%= task.repeat == 1 ? "Every Sunday" : '' %>
      <%= task.repeat == 2 ? "Every Monday" : '' %>
      <%= task.repeat == 3 ? "Every Tuesday" : '' %>
      <%= task.repeat == 4 ? "Every Wednesday" : '' %>
      <%= task.repeat == 5 ? "Every Thursday" : '' %>
      <%= task.repeat == 6 ? "Every Friday" : '' %>
      <%= task.repeat == 7 ? "Every Saturday" : '' %>

    <% if task.last_done_date %>
       <%=nice_date task.last_done_date %>
    <% else %>
         [Just Done] (will be a link later)
    <% end %>

    <%= link_to 'Show', :controller => 'tasks', :action => 'show', :id => task %>
    <%= link_to 'Edit', :controller => 'tasks', :action => 'edit', :id => task %>
    <%= link_to 'Destroy', {:controller => 'tasks', :action => 'destroy', :id => task }, :confirm => 'Are you sure?', :post => true %>

<% end %>
<% end %>

[<%= link_to 'Add weighing task', :controller => 'tasks', :action => 'new_weigh_cage_task', :id => @cage %>]

error: pathspec 'batkeeping/app/views/cages/_weighing_tasks.rhtml' did not match any file(s) known to git


text change

text change


Adding maint file.

Adding maint file.

<% @title   ||= title %>
<% @message ||= message %>
<html>
  <head>
    <title>
      <%= @title %>
    </title>
    <meta http-equiv="Content-Type" content="text/html;">
  </head>
  <body bgcolor="#999999" topmargin="100">
    <%= @message %>
  </body>
</html>

error: pathspec 'app/views/layouts/maintenance.rhtml' did not match any file(s) known to git


fix comments when not logged in

fix comments when not logged in


changed so that the form is within a table cell


Combine the search and publication scheme suggestions

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

                First,
                <% if !@info_request.public_body.publication_scheme.empty? %>
                    browse the authority's
                    <%= link_to "publication scheme", @info_request.public_body.publication_scheme %>
                    or search their web site ...
                <% else %>
                       search the authority's web site ...
                <% end %>
                <% if !@info_request.public_body.calculated_home_page.nil? %>

                            <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                    <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                    <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

        <% if @info_request.public_body.info_requests.size > 0 %>
            Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
            to '<%= h(@info_request.public_body.name) %>'
            for examples of how to word your request.
        <% else %>
            Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.
        <% end %>

Write your request in simple, precise language.

Ask for specific documents or information, this site is not suitable for general enquiries.

Keep it focussed. If you ask for everything it might cost too much and you might get nothing.

This site is public. Everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

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

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

    <% if !@info_request.public_body.publication_scheme.empty? %>

Browse the authority's
        <%= link_to "publication scheme", @info_request.public_body.publication_scheme %>
        to see if the information is already readily accessible, or for clues as to what could be requested.

    <% end %>

        <% if @info_request.public_body.info_requests.size > 0 %>
            Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
            to '<%= h(@info_request.public_body.name) %>'
            for examples of how to word your request.
        <% else %>
            Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.
        <% end %>

Write your request in simple, precise language.

Ask for specific documents or information, this site is not suitable for general enquiries.

Keep it focussed. If you ask for everything it might cost too much and you might get nothing.

This site is public. Everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

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

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

        <% if !@user %>

                Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website (why?).
                If you are thinking of using a pseudonym,
                please read this first.

        <% else %>

                Everything that you enter on this page
                will be displayed publicly on
                this website (why?).

        <% end %>

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>


Moved BAR not found page to core Racing on Rails

<p class="notice">
<%= flash[:notice] %>
</p>

<%= link_to 'Back to BAR homepage', {:action => 'index', :year => nil, :discipline => nil, :category => nil}, :class => 'obvious' %>

error: pathspec 'app/views/bar/not_found.rhtml' did not match any file(s) known to git


add view for debugger

add view for debugger

      <form action="post">
        <fieldset class="ui-helper-reset">
          <legend>Start a new debugging session in a tab</legend>>
          Server

          <input type="text" name="tab_server" id="tab_server" value="http://localhost:4567"
                 class="ui-widget-content ui-corner-all" />

          Process ID (optional)

          <input type="text" name="tab_process" id="tab_process" value="141264897"
                 class="ui-widget-content ui-corner-all" />
        </fieldset>
      </form>

    <button id="add_tab">Start Session</button>
    <button id="clone_tab">Clone Session</button>

Help

          This is the MagLev WebTools Debugger
          Click on "Start Session" to open connect to a debugging session.

      Available Processes
      <select name="process-select-box">
        <option value="">---</option>
      </select>

error: pathspec 'views/debugger.rhtml' did not match any file(s) known to git


[ClockingIT @ Split channel list into two column table instead of floating divs]

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/evinoca/clockingit.git/'


Update

Update

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/gamegenius/ggmc.git/'


[ClockingIT @ Overflow hidden for main layout tooltip as well]


Added global application layout.

Added global application layout.

<%= render :partial => "layouts/header" -%>

    <%= render :partial => "layouts/navigation"-%>
  </div

      <%= @content_for_left-%>

    <div id="right-column"
      <%= @content_for_right-%>

<%= render :partial => "layouts/footer" -%>

error: pathspec 'app/views/layouts/application.rhtml' did not match any file(s) known to git


Fix duration == nil

Fix duration == nil


whoops, missed this

whoops, missed this

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

<% cache @comments.collect { |c| [c.id, c.votes, c.updated_at] }.hash.to_s do -%>

Top Recommended Censored Comments

These comments were most recommended by News Sniffer visitors.

<% if @search %>

Search results for '<%= h @search %>'

<% end %>

<%= render :partial => "comment", :collection => @comments %>

<%= render_partial 'partials/paginator', @comments_pages %>
<% end -%>

error: pathspec 'app/views/bbchyscomments/top_recommended.rhtml' did not match any file(s) known to git


template

template

git-svn-id: 268669d3058f191005ae665964cd19b71efa10c4@13302 3f47a204-8049-4147-aab0-d444c64e7564

<title>Groups</title>

Add users to the group

<%if @edit%>
<form action="/space/<%=@container.id%>/update_group/<%=@role.id%>" class="edit_group" id="edit_group" method="post" name="group_space_form">
<%else%>
<form action="/space/<%=@container.id%>/save_group" class="edit_group" id="edit_group" method="post" name="group_space_form">
<%end%>

Name for the Group

<%= text_field :group, :name %>

   Users

	Bin

   <%= image_tag "/images/papelera.png", :id => "papelera", :alt => "bin", :class => "bin"  %>

	   Group Users

	   <%i=0%>
	   <%for user in @users_group%>
	   		<div id="user_<%=@role.name+i.to_s%>"><%=user.login%>

			<%i=i+1%>
	   <%end%>

	<input type="hidden" name="group_users" value="" />

Create posts

<%= check_box(:group, "create_posts", {}, "true", "false") %>

Read posts

<%= check_box (:group, "read_posts", {}, "true", "false") %>

Update Posts

<%= check_box (:group, "update_posts", {}, "true", "false")%>

Delete Posts

<%= check_box (:group, "delete_posts", {}, "true", "false") %>

Create performances

<%= check_box (:group, "create_performances", {}, "true", "false") %>

Read performances

<%= check_box (:group, "read_performances", {}, "true", "false") %>

Update performances

<%= check_box (:group, "update_performances", {}, "true", "false") %>

Delete performances

<%= check_box (:group, "delete_performances", {}, "true", "false") %>

Manage Events

<%= check_box (:group, "manage_events", {}, "true", "false") %>

Admin

<%= check_box (:group, "admin", {}, "true", "false") %>

	<input type="button" name="Confirm" value="Confirm" style="width: 100px;" onClick=sendData()>
	<input type="button" name="Back" value="Back" style="width: 100px;" onClick=document.location="/spaces/<%=@container.id%>/show_groups">

<%= render :partial=> '/users/search' %>

</form>

error: pathspec 'app/views/roles/_form_groups.rhtml' did not match any file(s) known to git


Escape for HTML the displayed debug variables.

<% @title = "Debug" %>

<%=@title%>

You are <%= h @http_auth_user %>

Version numbers

Rails::VERSION::STRING <%=h Rails::VERSION::STRING%>

TMail::VERSION::STRING <%=h TMail::VERSION::STRING%>

Xapian::version_string <%=h Xapian::version_string%>

Spec::VERSION::STRING <%=h Spec::VERSION::STRING%>

Spec::Rails::VERSION::STRING <%=h Spec::Rails::VERSION::STRING%>

Configuration

environment: <%=h Rails::configuration.environment %>

environment_path: <%=h Rails::configuration.environment_path %>

framework_paths: <%=h Rails::configuration.framework_paths.to_yaml %>

Environment variables

<% for k,v in @request_env %>

<%=h k%>	<%=h v%>

<% end %>

Parameters

<% for k,v in params %>

<%=h k%>	<%=h v%>

<% end %>

Session

<% for k,v in session %>

<%=h k%>	<%=h v%>

<% end %>

<% @title = "Debug" %>

<%=@title%>

You are <%= h @http_auth_user %>

Version numbers

Rails::VERSION::STRING <%=Rails::VERSION::STRING%>

TMail::VERSION::STRING <%=TMail::VERSION::STRING%>

Xapian::version_string <%=Xapian::version_string%>

Spec::VERSION::STRING <%=Spec::VERSION::STRING%>

Spec::Rails::VERSION::STRING <%=Spec::Rails::VERSION::STRING%>

Configuration

environment: <%= Rails::configuration.environment %>

environment_path: <%= Rails::configuration.environment_path %>

framework_paths: <%= Rails::configuration.framework_paths.to_yaml %>

Environment variables

<% for k,v in @request_env %>

<%=k%>	<%=v%>

<% end %>

Parameters

<% for k,v in params %>

<%=k%>	<%=v%>

<% end %>

Session

<% for k,v in session %>

<%=k%>	<%=v%>

<% end %>


example localised static page

example localised static page

<% @title = "Sobre" %>

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

¡Bonjiorno amis!

Esta sito tu aidare a faire los requesti a la governmenti Seblano

error: pathspec 'app/views/help/about.es.rhtml' did not match any file(s) known to git


Fixes tickets 1103 / 1104

Fixes tickets 1103 / 1104

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

<% @page_heading = _("Pages") %>

  <% content_for('tasks') do %>
    <%= task_show _("Show this page"), @page.id %>
  <% end %>

<%= _("Are you sure you want to delete the page")%> '<%= @page[:name] %>'?

  <% form_tag :controller => '/admin/pages', :action => 'destroy' do %>
  <%= hidden_field "page", "id" %>
  <%= confirm_delete(_("Delete this page")) %>
  <% end %>

<% @page_heading = <%= _("Pages") %>

  <% content_for('tasks') do %>
    <%= task_show _("Show this page"), @page.id %>
  <% end %>

<%= _("Are you sure you want to delete the page")%> '<%= @page[:name] %>'?

  <% form_tag :controller => '/admin/pages', :action => 'destroy' do %>
  <%= hidden_field "page", "id" %>
  <%= confirm_delete(_("Delete this page")) %>
  <% end %>


made the warning about looking in Spam or Bulk bigger


[ClockingIT @ Don't let everyone change a tasks project.]


* rollback.rhtml: We need a rollback page.

git-svn-id: ce004a3be656e491f060c65e2aab8dd2a5477e8b@43 f7b17897-190c-4688-811d-8cf59fb8cab0

error: pathspec 'app/views/admin/rollback.rhtml' did not match any file(s) known to git


Don't escape link html on foi email display page

<% @title = "FOI email address for '" + h(@public_body.name) + "'" %>

<%= _('FOI email address for {{public_body}}',:public_body=> public_body_link(@public_body))%>

<% if @public_body.is_requestable? %>
<%= _('{{site_name}} sends new requests to {{request_email}} for this authority.', :site_name=>site_name, :request_email=> h(@public_body.request_email))%>
<% else %>
    <% if @public_body.not_requestable_reason == 'not_apply' %>

<%= _('Freedom of Information law no longer applies to this authority.Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'defunct' %>

<%=h @public_body.name %> no longer exists.
        <%= _('Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'bad_contact' %>

<%= _('We do not have a working request email address for this authority.')%>

    <% else %>
        <% raise "unknown reason " + @reason %>
    <% end %>

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason != 'bad_contact' %>
        <%= raw _('If the address is wrong, or you know a better address, please contact us.')% [help_contact_path]%>
    <% else %>
       <%= raw _(' If you know the address to use, then please send it to us.
        You may be able to find the address on their website, or by phoning them up and asking.')% [help_contact_path] %>
    <% end %>

        <% if @public_body.eir_only? %>
        <%= link_to "Make a new EIR request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% else %>
        <%= link_to "Make a new FOI request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% end %>
        to <%= h(@public_body.name) %>

<% @title = "FOI email address for '" + h(@public_body.name) + "'" %>

<%= _('FOI email address for {{public_body}}',:public_body=> public_body_link(@public_body))%>

<% if @public_body.is_requestable? %>
<%= _('{{site_name}} sends new requests to {{request_email}} for this authority.', :site_name=>site_name, :request_email=> h(@public_body.request_email))%>
<% else %>
    <% if @public_body.not_requestable_reason == 'not_apply' %>

<%= _('Freedom of Information law no longer applies to this authority.Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'defunct' %>

<%=h @public_body.name %> no longer exists.
        <%= _('Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'bad_contact' %>

<%= _('We do not have a working request email address for this authority.')%>

    <% else %>
        <% raise "unknown reason " + @reason %>
    <% end %>

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason != 'bad_contact' %>
        <%= _('If the address is wrong, or you know a better address, please contact us.')% [help_contact_path]%>
    <% else %>
       <%= _(' If you know the address to use, then please send it to us.
        You may be able to find the address on their website, or by phoning them up and asking.')% [help_contact_path] %>
    <% end %>

        <% if @public_body.eir_only? %>
        <%= link_to "Make a new EIR request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% else %>
        <%= link_to "Make a new FOI request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% end %>
        to <%= h(@public_body.name) %>


Make link relative

Make link relative

<%= _('Things to do with this request') %>

        <%= _('Anyone:') %>

        <% if @info_request.comments_allowed? %>

            <%= raw(_('Add an annotation (to help the requester or others)') % [new_comment_path(:url_title => @info_request.url_title)]) %>

        <% end %>
        <% if @old_unclassified %>

                <%= link_to _('Update the status of this request'), '#describe_state_form_1' %>

        <% end %>
      <% if @info_request.all_can_view? %>

          <%= link_to _("Download a zip file of all correspondence"), download_entire_request_path(:url_title => @info_request.url_title) %>

      <% end %>

    <% if ! @info_request.is_external? %>

      <%= _('{{info_request_user_name}} only:',:info_request_user_name=>h(@info_request.user_name)) %>

            <% if @last_response.nil? %>
                <%= link_to _("Send a followup"), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
            <% else %>
                <%= link_to _("Write a reply"), show_response_path(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
            <% end %>

        <% if !@old_unclassified %>

            <%= link_to _("Update the status of this request"), request_path(@info_request, :update_status => 1) %>

        <% end %>

            <%= link_to _("Request an internal review"), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>

    <% end %>

    <%= _('{{public_body_name}} only:',:public_body_name=>h(@info_request.public_body.name) ) %>

          <%= link_to _("Respond to request"), upload_response_path(:url_title => @info_request.url_title) %>

<%= _('Things to do with this request') %>

        <%= _('Anyone:') %>

        <% if @info_request.comments_allowed? %>

            <%= raw(_('Add an annotation (to help the requester or others)') % [new_comment_url(:url_title => @info_request.url_title)]) %>

        <% end %>
        <% if @old_unclassified %>

                <%= link_to _('Update the status of this request'), '#describe_state_form_1' %>

        <% end %>
      <% if @info_request.all_can_view? %>

          <%= link_to _("Download a zip file of all correspondence"), download_entire_request_path(:url_title => @info_request.url_title) %>

      <% end %>

    <% if ! @info_request.is_external? %>

      <%= _('{{info_request_user_name}} only:',:info_request_user_name=>h(@info_request.user_name)) %>

            <% if @last_response.nil? %>
                <%= link_to _("Send a followup"), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
            <% else %>
                <%= link_to _("Write a reply"), show_response_path(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
            <% end %>

        <% if !@old_unclassified %>

            <%= link_to _("Update the status of this request"), request_path(@info_request, :update_status => 1) %>

        <% end %>

            <%= link_to _("Request an internal review"), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>

    <% end %>

    <%= _('{{public_body_name}} only:',:public_body_name=>h(@info_request.public_body.name) ) %>

          <%= link_to _("Respond to request"), upload_response_path(:url_title => @info_request.url_title) %>


Remove spurious </table>

Remove spurious </table>

<% @title = 'Listing public authorities' %>

<%=@title%>

    <%= link_to 'New public authority', 'new' %>
    | <%= link_to 'Import from CSV file', 'import_csv' %>

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

       <%= text_field_tag 'query', params[:query], { :size => 30 } %>
       <%= submit_tag "Search" %> (substring search in names and emails; exact match of tags)

<% end %>

<% if @public_bodies_by_tag.size > 0 %>

Exact tag matches

      <% for column in PublicBody.content_columns.map { |c| c.human_name } - [ "Last edit comment" ] %>
        <%= column %>
      <% end %>

    <% for public_body in @public_bodies_by_tag %>
      <tr class="<%= cycle('odd', 'even') %>">
        <%= link_to h(public_body.name), 'show/' + public_body.id.to_s %>
      <% for column in PublicBody.content_columns.map { |c| c.name } - [ "name", "last_edit_comment" ] %>
        <%=h public_body.send(column) %>
      <% end %>

    <% end %>

<% end %>

<% if @public_bodies.size > 0 %>

Substring search matches

      <% for column in PublicBody.content_columns.map { |c| c.human_name } - [ "Last edit comment" ] %>
        <%= column %>
      <% end %>

    <% for public_body in @public_bodies %>
      <tr class="<%= cycle('odd', 'even') %>">
        <%= link_to h(public_body.name), 'show/' + public_body.id.to_s %>
      <% for column in PublicBody.content_columns.map { |c| c.name } - [ "name", "last_edit_comment" ] %>
        <%=h public_body.send(column) %>
      <% end %>

    <% end %>

<% end %>

<%= will_paginate(@public_bodies) %>


Say what blank is

Say what blank is

<%= error_messages_for 'public_body' %>

Name

<%= text_field 'public_body', 'name', :size => 60  %>

Short name (only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL - don't worry about breaking URLs through renaming, as the history is used to redirect)

<%= text_field 'public_body', 'short_name', :size => 60  %>

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority)

<%= text_field 'public_body', 'request_email', :size => 40  %>

Home page (of whole authority, not just their FOI page; set to blank (empty string) to guess it from the email)

<%= text_field 'public_body', 'home_page', :size => 60  %>

Tags (space separated:
    <% for category, description in PublicBody.categories_by_tag %>
        <% if category != "other" %>
            <%= category %>=<%= description %>;
        <% end %>
    <% end %>
)

<%= text_field 'public_body', 'tag_string', :size => 80  %>

Notes (for users to consider when making FOI requests to the authority)

<%= text_area 'public_body', 'notes', :rows => 4, :cols => 60  %>

Comment for this edit (put URL or other source of new info)

<%= text_area 'public_body', 'last_edit_comment', :rows => 2, :cols => 60  %>

Privacy note: The email addresses are assumed public data,
so we can share the love around later. If somebody wants to give us a
super-secret address (say to bypass spam traps) then we'll have to rethink
this.

<%= error_messages_for 'public_body' %>

Name

<%= text_field 'public_body', 'name', :size => 60  %>

Short name (only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL - don't worry about breaking URLs through renaming, as the history is used to redirect)

<%= text_field 'public_body', 'short_name', :size => 60  %>

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority)

<%= text_field 'public_body', 'request_email', :size => 40  %>

Home page (of whole authority, not just their FOI page; set to blank to guess it from the email)

<%= text_field 'public_body', 'home_page', :size => 60  %>

Tags (space separated:
    <% for category, description in PublicBody.categories_by_tag %>
        <% if category != "other" %>
            <%= category %>=<%= description %>;
        <% end %>
    <% end %>
)

<%= text_field 'public_body', 'tag_string', :size => 80  %>

Notes (for users to consider when making FOI requests to the authority)

<%= text_area 'public_body', 'notes', :rows => 4, :cols => 60  %>

Comment for this edit (put URL or other source of new info)

<%= text_area 'public_body', 'last_edit_comment', :rows => 2, :cols => 60  %>

Privacy note: The email addresses are assumed public data,
so we can share the love around later. If somebody wants to give us a
super-secret address (say to bypass spam traps) then we'll have to rethink
this.


Clearer text.

Clearer text.

<% @title = "Application Programming Interface - API" %>

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

<%=@title %>

 Introduction

This page explains how programmers can make other websites and software
interact with WhatDoTheyKnow via an "API".

WhatDoTheyKnow does not have a full API yet, but we are gradually adding
lots of things that are similar in use to an API as they are requested.

 1. Linking to new requests

To encourage your users to make links to a particular public authority, use URLs of the form
<%= link_to new_request_to_body_url(:url_name => "liverpool_city_council") , new_request_to_body_url(:url_name => "liverpool_city_council") %>.
These are the parameters you can add to those URLs, either in the URL or from a form.

 title - default summary of the new request.

 default_letter - default text of the body of the letter. The salutation (Dear...) and signoff (Yours...) are wrapped round this.

 body - as an alternative to default_letter, this sets the default entire text of the request, so you can customise the salutation and signoff.

 tags - space separated list of tags, so you can find and link up any requests made later, e.g. openlylocal spending_id:12345. The : indicates it is a machine tag. The values of machine tags may also include colons, useful for URIs.

 2. RSS (actually, Atom) feeds

There are Atom feeds on most pages which list FOI requests, which you can
use to get updates and links in XML format. Find the URL of the Atom feed in
one of these ways:

Look for the  RSS feed links.

Examine the <tt><link rel="alternate" type="application/atom+xml"></tt> tag in the head of the HTML.

Add <tt>/feed</tt> to the start of another URL.

In particular, even complicated search queries have Atom feeds.
You can do all sorts of things with them, such as query by authority, by file
type, by date range, or by status. See the advanced search
tips for details.

 3. JSON structured data

Request, public authority and user pages have JSON feeds, which let you download
information about objects in a structured form. Find them by:

Adding <tt>.json</tt> to the end of the URL.

Look for the <tt><link rel="alternate" type="application/json"></tt> tag in the head of the HTML.

Please contact us if you need an API feature that isn't there yet. It's
very much a work in progress, and we do add things when people ask us to.

<% @title = "Application Programming Interface - API" %>

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

<%=@title %>

 Introduction

This page explains how programmers can make other websites and software
interact with WhatDoTheyKnow via an "API".

WhatDoTheyKnow does not have a full API yet, but we are gradually adding
lots of things that are similar in use to an API as they are requested.

 1. Linking to new requests

To encourage your users to make links to a particular public authority, use URLs of the form
<%= link_to new_request_to_body_url(:url_name => "liverpool_city_council") , new_request_to_body_url(:url_name => "liverpool_city_council") %>.
These are the parameters you can add to those URLs, either in the URL or from a form.

 title - default summary of the new request.

 default_letter - default text of the body of the letter. The salutation (Dear...) and signoff (Yours...) are wrapped round this.

 body - as an alternative to default_letter, this sets the default entire text of the request, so you can customise the salutation and signoff.

 tags - space separated list of tags, so you can find and link up any requests made later, e.g. openlylocal spending_id:12345. The : indicates it is a machine tag. The values of machine tags may also include colons, useful for URIs.

 2. RSS (actually, Atom) feeds

There are Atom feeds throughout the site, which you can use to get updates
and links in XML format. Find the URL of the Atom feed in one of these ways:

Look for the  RSS feed links.

Examine the <tt><link rel="alternate" type="application/atom+xml"></tt> tag in the head of the HTML.

Add <tt>/feed</tt> to the start of another URL.

In particular, even complicated search queries have Atom feeds.
You can do all sorts of things with them, such as query by authority, by file
type, by date range, or by status. See the advanced search
tips for details.

 3. JSON structured data

Request, public authority and user pages have JSON feeds, which let you download
information about objects in a structured form. Find them by:

Adding <tt>.json</tt> to the end of the URL.

Look for the <tt><link rel="alternate" type="application/json"></tt> tag in the head of the HTML.

Please contact us if you need an API feature that isn't there yet. It's
very much a work in progress, and we do add things when people ask us to.


Remove hard-coded localhost URL

Remove hard-coded localhost URL

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>

        <%= stylesheet_link_tag 'main-custom', :title => "Main", :rel => "stylesheet"  %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

            <%= link_to site_name, frontpage_url %>

            <%= _('Make and explore Freedom of Information requests') %>

	  <%= render :partial => 'general/locale_switcher' %>

	  <%= render :partial => 'general/orglink' %>

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

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

        <% end %>

<%= link_to _("Make request"), frontpage_url %>

<%= link_to _("View requests"), request_list_successful_url %>

<%= link_to _("View authorities"), list_public_bodies_default %>

			<% if @user %>

<%=link_to _("My requests"), user_url(@user) %>

			<% end %>

<%= link_to _("Read blog"), blog_url %>

<%= link_to _("Help"), help_about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				<%= _('Hello, {{username}}!', :username => h(@user.name))%>
				(<%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>)
			<% else %>
			        <%= _('Hello!') %>
				(<%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
	<%= render :partial => 'general/credits' %>

	<%= render :partial => 'general/before_body_end' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>

        <%= stylesheet_link_tag 'main-custom', :title => "Main", :rel => "stylesheet"  %>
	<link href="http://127.0.0.1:3000/custom.css" media="screen" rel="stylesheet" type="text/css">

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

            <%= link_to site_name, frontpage_url %>

            <%= _('Make and explore Freedom of Information requests') %>

	  <%= render :partial => 'general/locale_switcher' %>

	  <%= render :partial => 'general/orglink' %>

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

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

        <% end %>

<%= link_to _("Make request"), frontpage_url %>

<%= link_to _("View requests"), request_list_successful_url %>

<%= link_to _("View authorities"), list_public_bodies_default %>

			<% if @user %>

<%=link_to _("My requests"), user_url(@user) %>

			<% end %>

<%= link_to _("Read blog"), blog_url %>

<%= link_to _("Help"), help_about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				<%= _('Hello, {{username}}!', :username => h(@user.name))%>
				(<%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>)
			<% else %>
			        <%= _('Hello!') %>
				(<%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
	<%= render :partial => 'general/credits' %>

	<%= render :partial => 'general/before_body_end' %>


Translate submit button for chat channels


jhu layouts as examples

jhu layouts as examples

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>Umlaut Find It | <%= @page_title %></title>
 <%= stylesheet_link_tag 'basic' %>

<%= render(:partial => "layout_helpers/resolve_head_content" ) %>

  <%= image_tag('/local/header.gif', :style=>"float: left;")
  %>

    <%= @content_for_layout %>

  FindIt service provided by <%= link_to 'Johns Hopkins Libraries', 'http://webapps.jhu.edu/jhuniverse/libraries/' %> | Powered by Umlaut, using services from <%= link_to 'SFX', 'http://www.exlibrisgroup.com/sfx.htm' %>, <%= link_to 'CrossRef', 'http://www.crossref.org' %>, <%= link_to 'Amazon', 'http://www.amazon.com' %>, <%= link_to 'OCLC Worldcat', 'http://www.worldcat.org' %>, and others.

error: pathspec 'app/views/layouts/local/jhu_search.rhtml' did not match any file(s) known to git


Fix HTML to pass HTML4.01 strict validation during testing

<% if FastGettext.default_available_locales.length > 1 %>

       <% for possible_locale in FastGettext.default_available_locales %>
        <% if possible_locale == I18n.locale.to_s %>
	          <%= locale_name(possible_locale) %>
        <% else %>
          <a href="<%= locale_switcher(possible_locale, params) %>"><%= locale_name(possible_locale) %>
        <% end %>
         <% end %>

     <% end %>


fixing cosmetic Safari fields on links

fixing cosmetic Safari fields on links


Simplified and improved email message. Brad, this needs a little more work. The sentence starting "to see the history..."
should be surrounded by a conditional to suppress this is the @user has no access rights to view the task.

Also, it is not clear here (bad naming!) whether @user is the user sending the email or receiving it. So this commit likely introduces
some bugs, but please clean this up.


Fix [156]: Add Basic tests for collections (thanks Christopher Swasey)

<% # ========================================================================
   # Collection Unit Test
   # ========================================================================
%>
<% content_for('final') do %>

<script>

//
//  core.js stub
//
CollectionTest = SC.Object.create({

  server: SC.Server.create({ prefix: ['CollectionTest'] }),

  FIXTURES: []

}) ;

//
//  fixtures stub
//
CollectionTest.FIXTURES = CollectionTest.FIXTURES.concat([

  { guid: '1',
    type: 'Employee',
    name: "Anne",
    sex:  "Female",

  },

  { guid: '2',
    type: 'Employee',
    name: "Bob",
    sex:  "Male"
  },

  { guid: '3',
    type: 'Employee',
    name: "Alice",
    sex:  "Female"
  },

  { guid: '4',
    type: 'Employee',
    name: "Rachel",
    sex:  "Female"
  },

  { guid: '5',
    type: 'Employee',
    name: "Michael",
    sex:  "Male"
  },

  { guid: '6',
    type: 'Employee',
    name: "Barbara",
    sex:  "Female"
  },

  { guid: '7',
    type: 'Employee',
    name: "Richard",
    sex:  "Male"
  }

]);

//
// model classes
//
CollectionTest.Employee = SC.Record.extend({

}) ;

//
// main.js stub
//
CollectionTest.server.preload(CollectionTest.FIXTURES) ;

Test.context("Test basic functions of a collection", {

  setup: function()
  {
    this.employees = CollectionTest.Employee.collection()

    this.anne = CollectionTest.Employee.find('1');
    this.bob = CollectionTest.Employee.find('2');
    this.alice = CollectionTest.Employee.find('3');
    this.rachel = CollectionTest.Employee.find('4');
    this.michael = CollectionTest.Employee.find('5');
    this.barbara = CollectionTest.Employee.find('6');
    this.richard = CollectionTest.Employee.find('7');
  },

  teardown: function()
  {
    delete this.employees;
    delete this.anne;
    delete this.bob;
    delete this.alice;
    delete this.rachel;
    delete this.michael;
    delete this.barbara;
    delete this.richard;
  },

  "Collection should initially be empty": function() {
    assertNull(this.employees.get('records'))
  },

  "Collection should have 7 records upon refresh": function() {
    this.employees.refresh()
    this.employees.get('records').length.shouldEqual(7)
  },

  "Collections should NOT contain records that have NOT been added to the store": function() {
    this.employees.refresh()
    var originalLength = this.employees.get('records').length
    var newEmployee = CollectionTest.Employee.create({name: "Joe"})
    this.employees.get('records').length.shouldEqual(originalLength)
  },

  "Collections should contain records that have been added to the store": function() {
    this.employees.refresh()
    var originalLength = this.employees.get('records').length
    var newEmployee = CollectionTest.Employee.newRecord({name: "Joe"})
    this.employees.get('records').length.shouldEqual(originalLength + 1)
    newEmployee.destroy()
  },

  "Collections should be properly ordered": function() {
    var employeesByName = CollectionTest.Employee.collection({orderBy: ['name']})
    employeesByName.refresh()
    var names = employeesByName.get('records').map(function(e) { return e.get('name') })
    assertIdentical(["Alice", "Anne", "Barbara", "Bob", "Michael", "Rachel", "Richard"].join(""), names.join(""))

    var employeesBySex = CollectionTest.Employee.collection({orderBy: ['sex']})
    employeesBySex.refresh()
    var sexes = employeesBySex.get('records').map(function(e) { return e.get('sex') })
    assertIdentical(["Female", "Female", "Female", "Female", "Male", "Male", "Male"].join(""), sexes.join(""))
  },

  "Collections should remain unchanged if a record is changed in a way that does not affect the order": function() {
    var employeesBySex = CollectionTest.Employee.collection({orderBy: ['sex']})
    employeesBySex.refresh()
    var employeesOriginal = employeesBySex.get('records').map(function(e) { return e.get('guid') }).join(", ")

    this.bob.set('name', 'Robert')
    var employees = employeesBySex.get('records').map(function(e) { return e.get('guid') }).join(", ")

    assertIdentical(employeesOriginal, employees)
  }

});

</script>

<% end %>

error: pathspec 'tests/models/collection.rhtml' did not match any file(s) known to git


Override the admin layout in the WDTK theme, to make the links work via the secure proxy.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>WhatDoTheyKnow admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%= stylesheet_link_tag 'admin', :title => "Main", :rel => "stylesheet"  %>

    <%= link_to 'WhatDoTheyKnow', main_url('/') %> admin:
    Summary
    | Timeline
    | Stats
    | Debug
    | Wiki
    View:
    Authorities
    | Requests
    | Users
    | Tracks

    <%= render :partial => 'general/locale_switcher' %>

    <% if flash[:error] %>

<%= flash[:error] %>

    <% end %>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end %>

    <%= yield  %>

error: pathspec 'lib/views/layouts/admin.rhtml' did not match any file(s) known to git


Disable the inside page caching for now, until we add invalidating properly (so if you edit things they change)

<%
if !info_request_event.nil? && info_request_event.event_type == 'response'
    incoming_message = info_request_event.incoming_message
end

# XXX disable this caching for now until we invalidate it properly - maybe do
# it at a higher level anyway.
# cache against all the parameters that there are to this partial
#cache_name = ""
#if !info_request_event.nil?
#    cache_name = cache_name + "correspondence/" + info_request_event.id.to_s
#end
#if !incoming_message.nil?
#    cache_name = cache_name + "/incoming_message/" + incoming_message.id.to_s
#end
#if !@collapse_quotes.nil? && !@collapse_quotes
#    cache_name = cache_name + "/collapse/false"
#else
#    cache_name = cache_name + "/collapse/true" # default is true
#end
## yeuch, must be nicer way of telling cache just to use this cache_name, than
## putting it falsely in list action
#cache(:controller => 'request', :action => 'list', :extra => cache_name) do

if not incoming_message.nil?
%>
    <div class="correspondence" id="incoming-<%=incoming_message.id.to_s%>">

            <% if !incoming_message.safe_mail_from.nil? %>
                <%= incoming_message.safe_mail_from %>

            <% end %>
            <%=h @info_request.public_body.name %>

<%= simple_date(incoming_message.sent_at) %>

        <%= render :partial => 'bubble', :locals => { :incoming_message => incoming_message, :body => incoming_message.get_body_for_html_display(@collapse_quotes), :attachments => incoming_message.get_attachments_for_display }  %>

            <%= link_to "Link to this", incoming_message_url(incoming_message) %> |
            <%= link_to "Send follow up", show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id) + "#followup" %>

<%
elsif info_request_event.event_type == 'sent' || info_request_event.event_type == 'followup_sent'
    outgoing_message = info_request_event.outgoing_message
    %>
    <div class="correspondence" id="outgoing-<%=outgoing_message.id.to_s%>">

        <%=h @info_request.user.name %>

<%= simple_date(info_request_event.created_at) %>

        <%= render :partial => 'bubble', :locals => { :body => outgoing_message.get_body_for_html_display(), :attachments => nil }  %>

            <% if outgoing_message.status == 'ready' %>
                 Warning: This message has not yet been sent for an unknown reason.
            <% end %>

            <%= link_to "Link to this", outgoing_message_url(outgoing_message) %> |
            <%= link_to "Send follow up", show_response_no_followup_url(:id => outgoing_message.info_request.id, :incoming_message_id => nil) + "#followup" %>

<% elsif [ 'resent', 'followup_resent' ].include?(info_request_event.event_type) %>

            <%= simple_date(info_request_event.created_at) %>

            Sent
            <% if info_request_event.outgoing_message.message_type == 'initial_request' %>
                request
            <% elsif info_request_event.outgoing_message.message_type == 'followup' %>
                a follow up
            <% else %>
                <% raise "unknown message_type" %>
            <% end %>

            to <%= public_body_link(@info_request.public_body) %> again<% if not info_request_event.same_email_as_previous_send? %>, using a new contact address<% end %>.

<% elsif info_request_event.event_type == 'comment'
    comment = info_request_event.comment
%>
    <%= render :partial => 'comment/single_comment', :locals => { :comment => comment } %>
<%
end

%>

<% # end %>

<%
if !info_request_event.nil? && info_request_event.event_type == 'response'
    incoming_message = info_request_event.incoming_message
end

# cache against all the parameters that there are to this partial
cache_name = ""
if !info_request_event.nil?
    cache_name = cache_name + "correspondence/" + info_request_event.id.to_s
end
if !incoming_message.nil?
    cache_name = cache_name + "/incoming_message/" + incoming_message.id.to_s
end
if !@collapse_quotes.nil? && !@collapse_quotes
    cache_name = cache_name + "/collapse/false"
else
    cache_name = cache_name + "/collapse/true" # default is true
end
# yeuch, must be nicer way of telling cache just to use this cache_name, than
# putting it falsely in list action
cache(:controller => 'request', :action => 'list', :extra => cache_name) do

if not incoming_message.nil?
%>
    <div class="correspondence" id="incoming-<%=incoming_message.id.to_s%>">

            <% if !incoming_message.safe_mail_from.nil? %>
                <%= incoming_message.safe_mail_from %>

            <% end %>
            <%=h @info_request.public_body.name %>

<%= simple_date(incoming_message.sent_at) %>

        <%= render :partial => 'bubble', :locals => { :incoming_message => incoming_message, :body => incoming_message.get_body_for_html_display(@collapse_quotes), :attachments => incoming_message.get_attachments_for_display }  %>

            <%= link_to "Link to this", incoming_message_url(incoming_message) %> |
            <%= link_to "Send follow up", show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id) + "#followup" %>

<%
elsif info_request_event.event_type == 'sent' || info_request_event.event_type == 'followup_sent'
    outgoing_message = info_request_event.outgoing_message
    %>
    <div class="correspondence" id="outgoing-<%=outgoing_message.id.to_s%>">

        <%=h @info_request.user.name %>

<%= simple_date(info_request_event.created_at) %>

        <%= render :partial => 'bubble', :locals => { :body => outgoing_message.get_body_for_html_display(), :attachments => nil }  %>

            <% if outgoing_message.status == 'ready' %>
                 Warning: This message has not yet been sent for an unknown reason.
            <% end %>

            <%= link_to "Link to this", outgoing_message_url(outgoing_message) %> |
            <%= link_to "Send follow up", show_response_no_followup_url(:id => outgoing_message.info_request.id, :incoming_message_id => nil) + "#followup" %>

<% elsif [ 'resent', 'followup_resent' ].include?(info_request_event.event_type) %>

            <%= simple_date(info_request_event.created_at) %>

            Sent
            <% if info_request_event.outgoing_message.message_type == 'initial_request' %>
                request
            <% elsif info_request_event.outgoing_message.message_type == 'followup' %>
                a follow up
            <% else %>
                <% raise "unknown message_type" %>
            <% end %>

            to <%= public_body_link(@info_request.public_body) %> again<% if not info_request_event.same_email_as_previous_send? %>, using a new contact address<% end %>.

<% elsif info_request_event.event_type == 'comment'
    comment = info_request_event.comment
%>
    <%= render :partial => 'comment/single_comment', :locals => { :comment => comment } %>
<%
end

%>

<% end %>


your_data/show_activity.rhtml removing "h"

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/doug-c/rubytime.git/'


Fixed controller name for 'destroy this page' (closes #218) [kevin@sb.org]

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

<% @page_heading = 'Pages' %>

  <% content_for('tasks') do %>
    <%= task_show "Show this page", @page.id %>
  <% end %>

Are you sure you want to delete this page?

  <%= start_form_tag :controller => 'pages', :action => 'destroy' %>
  <%= hidden_field "page", "id" %>
  <%= confirm_delete("Delete this page") %>
  <%= end_form_tag %>

<% @page_heading = 'Pages' %>

  <% content_for('tasks') do %>
    <%= task_show "Show this page", @page.id %>
  <% end %>

Are you sure you want to delete this page?

  <%= start_form_tag :controller => 'page', :action => 'destroy' %>
  <%= hidden_field "page", "id" %>
  <%= confirm_delete("Delete this page") %>
  <%= end_form_tag %>


[ClockingIT @ Move passive chat popup id to tbody instead of body]