Collapse para a bit.

Collapse para a bit.

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

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

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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

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

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

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

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

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

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

Privacy questions #

Who gets to see my email address? #

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

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

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

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

Why will my name 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 previous
question.  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 other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

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

Why are you publishing responses to FOI requests? #

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

Are the people making requests real people? #

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

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

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

Aren't you making lots of vexatious requests? #

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

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

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

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? #

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

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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

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

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

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

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

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

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

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to.

This includes the public authority that you are sending a request to.
They only get to see a special email address (it is @whatdotheyknow.com)
specific to that request.

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

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

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

Why will my name 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 previous
question.  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 other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

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

Why are you publishing responses to FOI requests? #

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

Are the people making requests real people? #

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

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

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

Aren't you making lots of vexatious requests? #

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

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

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

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.


add layers to rails

add layers to rails

  <form action="/search.html">
    <input type="text" name="query" value="" size="60">
    <input type="submit" value="Search">
  </form>

<% lon =  params['lon'] || '-0.1' %>
<% lat =  params['lat'] || '51.5' %>
<% zoom =  params['zoom'] || '11' %>

  <% unless @user %>

  We're trialing adverts to support the project. Login and they go away.

  <% end %>


Move requestor and authority into the main data table

  <% for info_request in info_requests %>

        <a href="#request_<%=info_request.id%>" data-toggle="collapse" data-parent="requests">
          <%=info_request.title%>

        <%= link_to(''.html_safe, request_admin_url(info_request)) %>

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

	        Requested by
		<%= link_to("#{info_request.user.name}", user_admin_url(info_request.user))%>

	        Made to
                <%= link_to("#{info_request.public_body.name}", public_body_admin_url(info_request.public_body)) %>

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

                  <%=h name %>

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

            <% end %>

  <% end %>

  <% for info_request in info_requests %>

        <a href="#request_<%=info_request.id%>" data-toggle="collapse" data-parent="requests">
          <%=info_request.title%>

        <%= link_to(''.html_safe, request_admin_url(info_request)) %>

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

                <%= link_to("admin #{info_request.public_body.name}", public_body_admin_url(info_request.public_body), :class => "btn btn-mini") %>
                <%= link_to("admin #{info_request.user.name}", user_admin_url(info_request.user), :class => "btn btn-mini") %>

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

                  <%=h name %>

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

            <% end %>

  <% end %>


Fixes the display bug in Google Chrome when adding more than one screenshot.

<% content_for :header_tags do %>
    <%= stylesheet_link_tag 'attach_screenshot', :plugin => 'redmine_attach_screenshot' %>
    <%= javascript_include_tag 'attach_screenshot', :plugin => 'redmine_attach_screenshot' %>
<% end %>

<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil  -%><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>

<%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

<% if @issue %>
<% if @issue.new_record? %>

<% end %>
<%= l(:label_screenshots) %>
<% if @issue.new_record? %>

<% else %>

<% end %>

<%= submit_tag l(:button_add), :onclick => 'showAttachScreen(); return false;'%>

<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>

<% end %>


use 6 chars, instead of 4 in cash_up form

Abrechnung vom <%=h @day.date.strftime "%d.%m.%Y" %>

<% form_remote_for :cash_register, @register, :update => 'cash', :url => { :action =>
'calculate_cash' } do |f| %>

				<% for i in [ 200, 100, 50, 20, 10 ] %>

					<%=h i %> x
					<%= f.text_field i, :size => 4, :style => "text-align: right" %>

				<% end %>

				<% for i in [ 5, 2, 1, 0.5, 0.2, 0.1, 0.05 ] %>

					<%=h i %> =
					<%= f.text_field i, :size => 4, :style => "text-align: right" %>

				<% end %>

					Total:

		<%= submit_tag 'Ausrechnen' %>

<% end %>

<% form_for :day, @day, :url => { :action => 'update', :id => @day } do |f| %>

		Datum
		<%= f.text_field 'date', :label => 'Datum', :size => 10, :style => "text-align: right" %>

		Bruttoumsatz
		<%= f.text_field 'product_count', :label => 'Bruttoumsatz', :size => 4, :style => "text-align: right" %>

		<%= f.text_field 'gross_turnover', :label => 'Bruttoumsatz', :size => 6, :style => "text-align: right" %>

		Nettoumsatz
		<%= f.text_field 'client_count', :label => 'Nettoumsatz', :size => 4, :style => "text-align: right" %>

		<%= f.text_field 'net_turnover', :label => 'Nettoumsatz', :size => 6, :style => "text-align: right" %>

		Bar-Soll
		<%= f.text_field 'cash', :label => 'Bar-Soll', :size => 6, :style => "text-align: right" %>

		Ausgabe
		<%= f.text_field 'expenses', :label => 'Ausgabe', :size => 6, :style => "text-align: right" %>

		EFT/Karte
		<%= f.text_field 'card_turnover', :label => 'Bar-Soll', :size => 6, :style => "text-align: right" %>

		<%= submit_tag 'Abschliessen' %>

<% end %>

Abrechnung vom <%=h @day.date.strftime "%d.%m.%Y" %>

<% form_remote_for :cash_register, @register, :update => 'cash', :url => { :action =>
'calculate_cash' } do |f| %>

				<% for i in [ 200, 100, 50, 20, 10 ] %>

					<%=h i %> x
					<%= f.text_field i, :size => 4, :style => "text-align: right" %>

				<% end %>

				<% for i in [ 5, 2, 1, 0.5, 0.2, 0.1, 0.05 ] %>

					<%=h i %> =
					<%= f.text_field i, :size => 4, :style => "text-align: right" %>

				<% end %>

					Total:

		<%= submit_tag 'Ausrechnen' %>

<% end %>

<% form_for :day, @day, :url => { :action => 'update', :id => @day } do |f| %>

		Datum
		<%= f.text_field 'date', :label => 'Datum', :size => 10, :style => "text-align: right" %>

		Bruttoumsatz
		<%= f.text_field 'product_count', :label => 'Bruttoumsatz', :size => 4, :style => "text-align: right" %>

		<%= f.text_field 'gross_turnover', :label => 'Bruttoumsatz', :size => 4, :style => "text-align: right" %>

		Nettoumsatz
		<%= f.text_field 'client_count', :label => 'Nettoumsatz', :size => 4, :style => "text-align: right" %>

		<%= f.text_field 'net_turnover', :label => 'Nettoumsatz', :size => 4, :style => "text-align: right" %>

		Bar-Soll
		<%= f.text_field 'cash', :label => 'Bar-Soll', :size => 4, :style => "text-align: right" %>

		Ausgabe
		<%= f.text_field 'expenses', :label => 'Ausgabe', :size => 4, :style => "text-align: right" %>

		EFT/Karte
		<%= f.text_field 'card_turnover', :label => 'Bar-Soll', :size => 4, :style => "text-align: right" %>

		<%= submit_tag 'Abschliessen' %>

<% end %>


Add registration number in to search link.

<% @title = "About" %>

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

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about the UK Government and UK public bodies.
The site helps people access information about central government, local government,
Parliament, the NHS, the armed forces, state funded schools and universities and
other public authorities.

You can also use the site to find out information that regulators hold about businesses,
charities and other organisations.

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 received 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 health care 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.
Some people also use the site for research.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond. The response
will either contain the information you want, or give a valid legal reason why
it has not been provided.

Does useful information get released through the site? #

Yes. Thousands of documents have been released through the site.
See also: 366
Interesting things that we know because of WhatDoTheyKnow.

How many people use the site? #

We have over 30,000 registered users and around 15% to 20% of requests to UK Central Government are made through the site.

Who makes WhatDoTheyKnow? #

WhatDoTheyKnow is run and maintained by
UK Citizens Online
Democracy (UKCOD) as part of its
mySociety project.
UKCOD is a registered charity in England and Wales (no.
1076346).
UKCOD is also a limited company registered in England and Wales (no.
03277032)
and a registered data controller (no.
Z9602302).
The UKCOD trustees form the governing body of the charity
and are ultimately responsible for controlling the management and administration of the charity. UKCOD's registered
office is 483 Green Lanes, London, N13 4BS. UKCOD is not a public body.

The site was initially
funded by the JRSST
Charitable Trust.

If you like what we're doing, then you can
make a donation.

How can I keep up with news about WhatDoTheyKnow?#

We have a <a href="<%= blog_path %>">blog and a twitter feed.

Next, read about <a href="<%= help_requesting_path %>">making requests -->


colony status census now starts from appropriate month of the first bat entry in the db

<% if display == 'no' %>
[<%= link_to_remote '+',
          :update => "year#{year}",
          :url => {:controller => 'main', :action => 'show_census_year', :year => year, :display => 'yes' } %>] <%= year %>

<% else %>
[<%= link_to_remote '-',
          :update => "year#{year}",
          :url => {:controller => 'main', :action => 'show_census_year', :year => year, :display => 'no'} %>] <%= year %>

Month
Left
Arrived

<% if year == Bat.earliest_addition.year.to_s %>
<% min_month =  Bat.earliest_addition.month %>
<% else %>
<% min_month = 1 %>
<% end %>

<% if year == Time.now.year.to_s %>
<% max_month = Time.now.month %>
<% else %>
<% max_month = 12 %>
<% end %>

<% total_left = 0 %>
<% total_arrived = 0 %>

<% for n in min_month..max_month %>

<% bats_left, n_bats_left = Bat.left_on_month(n, year) %>
<% bats_arrived, n_bats_arrived = Bat.arrived_on_month(n, year) %>

<% total_left = total_left + n_bats_left %>
<% total_arrived = total_arrived + n_bats_arrived %>
<%= Date::MONTHNAMES[n] %>
<%= n_bats_left %>
(
<% for bat in bats_left %>
<%= bat.band %>
<% end %>
)

<%= n_bats_arrived %>
(
<% for bat in bats_arrived %>
<%= bat.band %>
<% end %>
)

<% end %>

Total
-<%= total_left %>
+<%= total_arrived %>
<%= total_arrived - total_left %>

<% end %>

<% if display == 'no' %>
[<%= link_to_remote '+',
          :update => "year#{year}",
          :url => {:controller => 'main', :action => 'show_census_year', :year => year, :display => 'yes' } %>] <%= year %>

<% else %>
[<%= link_to_remote '-',
          :update => "year#{year}",
          :url => {:controller => 'main', :action => 'show_census_year', :year => year, :display => 'no'} %>] <%= year %>

Month
Left
Arrived

<% if year == Time.now.year.to_s %>
<% max_month = Time.now.month %>
<% else %>
<% max_month = 12 %>
<% end %>

<% total_left = 0 %>
<% total_arrived = 0 %>

<% for n in 1..max_month %>

<% bats_left, n_bats_left = Bat.left_on_month(n, year) %>
<% bats_arrived, n_bats_arrived = Bat.arrived_on_month(n, year) %>

<% total_left = total_left + n_bats_left %>
<% total_arrived = total_arrived + n_bats_arrived %>
<%= Date::MONTHNAMES[n] %>
<%= n_bats_left %>
(
<% for bat in bats_left %>
<%= bat.band %>
<% end %>
)

<%= n_bats_arrived %>
(
<% for bat in bats_arrived %>
<%= bat.band %>
<% end %>
)

<% end %>

Total
-<%= total_left %>
+<%= total_arrived %>
<%= total_arrived - total_left %>

<% end %>


Fix another created_at/published_at.  Closes #999

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

<div class="atomentry" id="article-<%= article.id %>">

    <%= (controller.action_name.include? 'permalink') ? article.title : article_link(article.title, article) %>
    <%= content_tag(:span, article.comments.size, :class => 'comment_count') if article.comments.size > 0 %>

    Posted by <%= author_link(article) %>
    <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %>

    <%= article_html(article, :body) %>

    <% if article.extended? -%>

        <% if controller.action_name == 'index' -%>

<%= article_link "Continue reading...", article %>

        <% else -%>
          <%= article_html(article, :extended) %>
        <% end -%>

    <% end -%>

    <%= content_tag(:li, category_links(article), :class => 'categories') unless article.categories.empty? %>
    <%= content_tag(:li, tag_links(article), :class => 'tags') unless article.tags.empty? %>

Meta
      <%= trackbacks_link(article) << ',' if article.allow_pings? %>
      <%= comments_link(article) << ',' if article.allow_comments? %>
      <a href="<%= article_url article %>" rel="bookmark">permalink,
      <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'rss',  :id => article %>">rss,
      <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'atom', :id => article %>">atom

<div class="atomentry" id="article-<%= article.id %>">

    <%= (controller.action_name.include? 'permalink') ? article.title : article_link(article.title, article) %>
    <%= content_tag(:span, article.comments.size, :class => 'comment_count') if article.comments.size > 0 %>

    Posted by <%= author_link(article) %>
    <abbr class="published" title="<%= article.created_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.created_at %>

    <%= article_html(article, :body) %>

    <% if article.extended? -%>

        <% if controller.action_name == 'index' -%>

<%= article_link "Continue reading...", article %>

        <% else -%>
          <%= article_html(article, :extended) %>
        <% end -%>

    <% end -%>

    <%= content_tag(:li, category_links(article), :class => 'categories') unless article.categories.empty? %>
    <%= content_tag(:li, tag_links(article), :class => 'tags') unless article.tags.empty? %>

Meta
      <%= trackbacks_link(article) << ',' if article.allow_pings? %>
      <%= comments_link(article) << ',' if article.allow_comments? %>
      <a href="<%= article_url article %>" rel="bookmark">permalink,
      <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'rss',  :id => article %>">rss,
      <a href="<%= xml_url :action=>'feed', :type=>'article', :format => 'atom', :id => article %>">atom


Improve performance by including ShareThis only in homepage

<%= stylesheet_link_tag "/tuderechoasaber-theme/stylesheets/custom" %>

<% if RAILS_ENV == 'production' %>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-431041-8']);
  _gaq.push(['_setDomainName', 'tuderechoasaber.es']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<% end %>

<% if params[:action] == 'frontpage' %>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-7cc3d19d-c1ea-bb5b-a70d-d9b23629ea61"}); </script>
<% end %>

<%= stylesheet_link_tag "/tuderechoasaber-theme/stylesheets/custom" %>

<% if RAILS_ENV == 'production' %>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-431041-8']);
  _gaq.push(['_setDomainName', 'tuderechoasaber.es']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "ur-7cc3d19d-c1ea-bb5b-a70d-d9b23629ea61"}); </script>

<% end %>


Fix #382 http://code.google.com/p/activescaffold/issues/detail?id=382 Removing last association in a subform with no blank record

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

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

associated << column.association.klass.new if show_blank_record
-%>

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

<div <%= 'style="display: none;"' if column.collapsed -%>>
<%= render :partial => subform_partial_for_column(column), :locals => {:column => column, :parent_record => parent_record, :associated => associated} %>
<% unless show_blank_record -%>
<% @record = column.association.klass.new -%>
<%= hidden_field_tag "record#{column_scope(column)}", nil, :id => nil %>
<% end -%>

<% @record = parent_record -%>

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

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

associated << column.association.klass.new if show_blank_record
-%>

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

<div <%= 'style="display: none;"' if column.collapsed -%>>
<%= render :partial => subform_partial_for_column(column), :locals => {:column => column, :parent_record => parent_record, :associated => associated} %>

<% @record = parent_record -%>


slightly more compliant html

slightly more compliant html

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

<title><%= AppConfig.param("app_name") %> | <%= @page_title %></title>
      <link media="screen" rel="stylesheet" type="text/css" href="<%= stylesheet_path("basic") %>">

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

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

    <%= image_tag('/local/header.gif') %>

URL:
        <% url = permalink_url(request, @user_request) %>
        <%= link_to url, url %>

    <%= @content_for_layout %>

    FindIt service provided by <%= link_to 'Johns Hopkins Libraries', 'http://webapps.jhu.edu/jhuniverse/libraries/' %> | Powered by <%= link_to 'Umlaut', 'http://umlaut.rubyforge.org/' %>, 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' %>, <%= link_to 'ISBNdb', 'http://isbndb.com' %>, <%= link_to 'LibraryThing', 'http://www.librarything.com' %>, <%= link_to 'Google Books', 'http://books.google.com' %>, <%= link_to 'HathiTrust', 'http://www.lib.umich.edu/mdp/' %>, <%= link_to 'OpenLibrary', 'http://openlibrary.org/' %>, <%= link_to 'the Internet Archive', 'http://archive.org' %>, <%= link_to 'Worldcat Identities', 'http://orlabs.oclc.org/Identities/' %> and others.
    <% if AppConfig.param('main_sfx_base_url') && @user_request %>

      <%= link_to('[T]', "http://app01.mse.jhu.edu/findit-dev/resolve?#{@user_request.to_context_object.kev}") %>

      <%=
      url = AppConfig.param('main_sfx_base_url');
      url += '?'
      url += @user_request.to_context_object.kev
      url += "&sfx.ignore_date_threshold=1" if title_level_request?

      link_to('[S]', url, :target=>'_blank')
      %>
    <% end %>

    <%= link_to_toggle_debug_info %>

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

<title><%= AppConfig.param("app_name") %> | <%= @page_title %></title>
      <link media="screen" rel="stylesheet" type="text/css" href="<%= stylesheet_path("basic") %>"></link>

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

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

    <%= image_tag('/local/header.gif') %>

URL:
        <% url = permalink_url(request, @user_request) %>
        <%= link_to url, url %>

    <%= @content_for_layout %>

    FindIt service provided by <%= link_to 'Johns Hopkins Libraries', 'http://webapps.jhu.edu/jhuniverse/libraries/' %> | Powered by <%= link_to 'Umlaut', 'http://umlaut.rubyforge.org/' %>, 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' %>, <%= link_to 'ISBNdb', 'http://isbndb.com' %>, <%= link_to 'LibraryThing', 'http://www.librarything.com' %>, <%= link_to 'Google Books', 'http://books.google.com' %>, <%= link_to 'HathiTrust', 'http://www.lib.umich.edu/mdp/' %>, <%= link_to 'OpenLibrary', 'http://openlibrary.org/' %>, <%= link_to 'the Internet Archive', 'http://archive.org' %>, <%= link_to 'Worldcat Identities', 'http://orlabs.oclc.org/Identities/' %> and others.
    <% if AppConfig.param('main_sfx_base_url') && @user_request %>

      <%= link_to('[T]', "http://app01.mse.jhu.edu/findit-dev/resolve?#{@user_request.to_context_object.kev}") %>

      <%=
      url = AppConfig.param('main_sfx_base_url');
      url += '?'
      url += @user_request.to_context_object.kev
      url += "&sfx.ignore_date_threshold=1" if title_level_request?

      link_to('[S]', url, :target=>'_blank')
      %>
    <% end %>

    <%= link_to_toggle_debug_info %>


Fix legacy truncate usage

Fix legacy truncate usage

News Article Revisions

Title
Version
Votes
Source

<% @versions.each do |version| %>

<% if version.news_article.versions_count > 1 %>

  <%= link_to h(truncate(version.title, :length => 75)), { :action => :diff, :id => version.news_article.id,
    :version_a => version.version,
    :version_b => version.version - 1 }, :title => h(version.title) %>

<% else %>

  <span title="<%= h(version.title) %>"><%= h(truncate(version.title, :length => 75)) %>

<% end %>

  <%= version.version %>

  <%= version.votes %>

  <%= version.news_article.source %>

<% end %>

<%= will_paginate @versions %>

News Article Revisions

Title
Version
Votes
Source

<% @versions.each do |version| %>

<% if version.news_article.versions_count > 1 %>
<%= link_to h(truncate(version.title,75)), { :action => :diff, :id => version.news_article.id,
  :version_a => version.version,
  :version_b => version.version - 1 }, :title => h(version.title) %>
<% else %>
<span title="<%= h(version.title) %>"><%= h(truncate(version.title,75)) %>
<% end %>

<%= version.version %>
<%= version.votes %>
<%= version.news_article.source %>

<% end %>

<%= will_paginate @versions %>


Hilfe zum Feststellen der Ubuntu-Version

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

Feststellen der Ubuntu-Version

Öffne ein Terminal unter "Anwendungen" -> "Zubehör" -> "Terminal"

Gebe dort ein: <tt>lsb_release -cr</tt>

Wenn deine Version von Communtu nicht unterstützt wird, gibt es zwei Möglichkeiten:

du machst ein Upgrade auf eine neuere Version

du erweiterst Communtu um deine Version</tt>


Fix the path to the sidebar partial.

Fix the path to the sidebar partial.

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

  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  <meta name="description" content="description"/>
  <meta name="keywords" content="keywords"/>
  <meta name="author" content="author"/>
  <%= stylesheet_link_tag "transparentia" %>
  <link rel="stylesheet" type="text/css" href="default.css" media="screen"/>
  <title>Transparentia</title>

Administrationsbereich

      <%= yield %>

      <%= render :partial => "/admin/sidebar" %>

© 2006 Website.com. Valid CSS & XHTML. Template design by Arcsin

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

  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
  <meta name="description" content="description"/>
  <meta name="keywords" content="keywords"/>
  <meta name="author" content="author"/>
  <%= stylesheet_link_tag "transparentia" %>
  <link rel="stylesheet" type="text/css" href="default.css" media="screen"/>
  <title>Transparentia</title>

Administrationsbereich

      <%= yield %>

      <% render :partial => :sidebar %>

© 2006 Website.com. Valid CSS & XHTML. Template design by Arcsin


[ClockingIT @ Allow completing projects with grant access or admin status]

        <fieldset>
          <legend><%=_ 'Edit Project' %></legend>

          <%= start_form_tag :action => 'update', :id => @project %>
          <%= render_partial "form" %>
          <%= submit_tag _("Edit"), :class => 'nolabel' %>
          <%= end_form_tag %>

            <% if @project.user_id == session[:user].id || session[:user].admin > 0%>

<%= link_to( _("Delete Project"), {:controller => 'projects', :action => 'destroy', :id => @project}, :confirm => "Really delete #{@project.name}?") %>

            <% end %>
            <% if session[:user].can?( @project, 'grant' ) || session[:user].admin > 0 %>

 <%= link_to( _("Complete Project"), {:controller => 'projects', :action => 'complete', :id => @project}, :confirm => "Really complete #{@project.name}?") %> <%= "| " if @project.user_id == session[:user].id %>

            <% end %>
            <% if session[:user].can?( @project, 'milestone' ) %>

<%= link_to _("New Milestone"), {:controller => 'milestones', :action => 'new', :project_id => @project}  %>

            <% end %>
        </fieldset>

<% if session[:user].can?( @project, 'grant' ) %>

        <fieldset>
          <legend><%=_ 'Access To Project' %></legend>

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

        </fieldset>

<% end %>

        <fieldset>
          <legend><%=_ 'Edit Project' %></legend>

          <%= start_form_tag :action => 'update', :id => @project %>
          <%= render_partial "form" %>
          <%= submit_tag _("Edit"), :class => 'nolabel' %>
          <%= end_form_tag %>

            <% if @project.user_id == session[:user].id %>

<%= link_to( _("Delete Project"), {:controller => 'projects', :action => 'destroy', :id => @project}, :confirm => "Really delete #{@project.name}?") %>

 <%= link_to( _("Complete Project"), {:controller => 'projects', :action => 'complete', :id => @project}, :confirm => "Really complete #{@project.name}?") %> |

            <% end %>
            <% if session[:user].can?( @project, 'milestone' ) %>

<%= link_to _("New Milestone"), {:controller => 'milestones', :action => 'new', :project_id => @project}  %>

            <% end %>
        </fieldset>

<% if session[:user].can?( @project, 'grant' ) %>

        <fieldset>
          <legend><%=_ 'Access To Project' %></legend>

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

        </fieldset>

<% end %>


Updating view comments link for JS disabled viewers

---
extension: html
filter:    erb
layout:    index
dirty:     true
---

<a href="<%= @page.url %>"><%= Widont.widont @page.title %>

<%= @page.summary %>

    <abbr class='published' title='<%= @page.created_at.to_s %>'>Posted <%=  @page.created_at.strftime('%B %d, %Y') %>

    <%= @content %>

  View the comments.

---
extension: html
filter:    erb
layout:    index
dirty:     true
---

<a href="<%= @page.url %>"><%= Widont.widont @page.title %>

<%= @page.summary %>

    <abbr class='published' title='<%= @page.created_at.to_s %>'>Posted <%=  @page.created_at.strftime('%B %d, %Y') %>

    <%= @content %>

  View the forum thread.


Added test of date_select and datetime_select in the helper_tests file

Use this page to test helpers of the Localization Simplified plugin.
Put this file in your applications view directory, add a controller action "helper_tests", and view this page

Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ)

		fn
		result
		expected

    time_ago_in_words(3.seconds.ago, true)
    <%= time_ago_in_words(3.seconds.ago, true) %>
    'less than 5 seconds'

    time_ago_in_words(9.seconds.ago, true)
    <%= time_ago_in_words(9.seconds.ago, true) %>
    'less than 10 seconds'

    time_ago_in_words(20.seconds.ago, true)
    <%= time_ago_in_words(20.seconds.ago, true) %>
    'less than 20 seconds'

     time_ago_in_words(31.seconds.ago, true)
    <%= time_ago_in_words(31.seconds.ago, true) %>
    'half a minute'

    time_ago_in_words(50.seconds.ago, true)
    <%= time_ago_in_words(50.seconds.ago, true) %>
    'less than a minute'

    time_ago_in_words(80.seconds.ago, true)
    <%= time_ago_in_words(80.seconds.ago, true) %>
    '1 minute'

    time_ago_in_words(4.minutes.ago, true)
    <%= time_ago_in_words(4.minutes.ago, true) %>
    '4 minutes'

    time_ago_in_words(50.minutes.ago, true)
    <%= time_ago_in_words(50.minutes.ago, true) %>
    'about 1 hour'

    time_ago_in_words(4.hours.ago, true)
    <%= time_ago_in_words(4.hours.ago, true) %>
    'about 4 hours'

    time_ago_in_words(1.day.ago, true)
    <%= time_ago_in_words(1.day.ago, true) %>
    '1 day'

    time_ago_in_words(4.days.ago, true)
    <%= time_ago_in_words(4.days.ago, true) %>
    '4 days'

number_to_currency test:

<%= number_to_currency(1008323) %>

<%= number_to_currency(10083.777) %>

<%= number_to_currency(0.2) %>

Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>"  (expected "1,2, and 3")

	<% t = Time.parse('2006-12-25 11:55') -%>
	<% d = Date.parse('2006-12-25 11:55') -%>

	    Formatted time:
			result
			expected

	    t.to_formatted_s()
	    <%= t.to_formatted_s() %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:default)
	    <%= t.to_formatted_s(:default) %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:long)
	    <%= t.to_formatted_s(:long) %>
			December 25, 2006 11:55

	    t.to_formatted_s(:short)
	    <%= t.to_formatted_s(:short) %>
			 	25 Dec 11:55

	    Formatted date:
			result
			expected

	    d.to_formatted_s()
	    <%= d.to_formatted_s() %>
			2006-12-25

	    d.to_formatted_s(:default)
	    <%= d.to_formatted_s(:default) %>
			2006-12-25

	    d.to_formatted_s(:long)
	    <%= d.to_formatted_s(:long) %>
			December 25, 2006

	    d.to_formatted_s(:short)
	    <%= d.to_formatted_s(:short) %>
			 	25 Dec

date_select and datetime_select tests

<%

%>

Test order and localized content of date_select

<%= date_select :testmodel, :date %>

Test order and localized content of datetime_select

<%= datetime_select :testmodel, :datetime %>


nicer links

nicer links

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets.select{|a| a.saldo != 0.0} %>

          <%= link_to "#{account.number} - #{account.title}", :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:current_assets)) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(-account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:outside_capital)) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:capital_assets)) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:equity_capital)) %>

    Total: <%= currency_fmt(@client.saldo(:current_assets) + @client.saldo(:capital_assets)) %>
    Total: <%= currency_fmt(-(@client.saldo(:outside_capital) + @client.saldo(:equity_capital))) %>

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets.select{|a| a.saldo != 0.0} %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:current_assets)) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(-account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:outside_capital)) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:capital_assets)) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:equity_capital)) %>

    Total: <%= currency_fmt(@client.saldo(:current_assets) + @client.saldo(:capital_assets)) %>
    Total: <%= currency_fmt(-(@client.saldo(:outside_capital) + @client.saldo(:equity_capital))) %>


fixing the fixes

fixing the fixes

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

<%= error_messages_for :upload %>
<div class="box" id="action" <%= hide_div? %>>
	<% form_for(:upload, :url => '/uploads/', :html => { :multipart => true }) do |f| -%>

New File

<%= f.file_field :uploaded_data %>

Files must be under 15mb.

		<%= submit_tag "Upload", :disable_with => "Upload" %> or
		<% if current_action != 'new' %>
			<%= link_to_function 'Cancel', "$('action').toggle()" %>
		<% else %>
			<%= link_to 'Cancel', files_home_path %>
		<% end %>

	<% end %>

<div class="info-left" <%= hide_div? %>>
	<%= link_to 'Home', home_path %> »
	<%= link_to 'Files', files_home_path %> » New File

<%= error_messages_for :upload %>
<div class="box" id="action" <%= hide_div? %>>
	<% form_for(:upload, :url => uploads_path, :html => { :multipart => true }) do |f| -%>

New File

<%= f.file_field :uploaded_data %>

Files must be under 15mb.

		<%= submit_tag "Upload", :disable_with => "Upload" %> or
		<% if current_action != 'new' %>
			<%= link_to_function 'Cancel', "$('action').toggle()" %>
		<% else %>
			<%= link_to 'Cancel', files_home_path %>
		<% end %>

	<% end %>

<div class="info-left" <%= hide_div? %>>
	<%= link_to 'Home', home_path %> »
	<%= link_to 'Files', files_home_path %> » New File


ActionItem918: removing blog buttons from CMS

These buttons are already in the control panel.

  <%= icon('cms') %>
  <%= _('Content management') %>

<% if @article %>

    <%= icon('cms') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.name, :id => item.id)) } %>

<% end %>

<% button_bar(:style => 'margin-bottom: 1em;') do %>
  <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>

  <% if !@article or !@article.blog? %>
    <%= button :add, _('New folder'), :action => 'new', :type => 'Folder', :parent_id => parent_id %>
  <% end %>
  <%= lightbox_button('new', label_for_new_article(@article), :action => 'new', :parent_id => parent_id) %>
<% end %>

  <%# header %>

    <%= _('Name') %>
    <%= _('Type') %>
    <%= _('Actions') %>

  <%# folders %>
  <% for folder in @folders %>

        <%= image_tag(icon_for_article(folder)) %>
        <%= link_to folder.name, :action => 'view', :id => folder.id %>

        <%= folder.class.short_description %>

        <%= link_to _('Properties'), :action => 'edit', :id => folder.id %>
        <%= link_to _('Public view'), folder.url %>
        <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %>
        <%= link_to _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>

  <% end %>

  <%# non-folder subitems %>
  <% unless @folders.empty? %>

  <% end %>
  <% for item in @subitems %>

        <%= image_tag(icon_for_article(item)) %>
        <%= link_to item.name, :action => 'edit', :id => item.id %>

        <%= item.class.short_description %>

        <%= link_to _('Edit'), :action => 'edit', :id => item.id %>
        <%= link_to _('Public view'), item.url %>
        <%= link_to _('Spread this'), :action => 'publish', :id => item.id %>
        <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %>
        <%= link_to _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %>

  <% end %>

  <% if @subitems.empty? || @folders.empty? %>

<%= _('None') %>

  <% end %>

  <%= icon('cms') %>
  <%= _('Content management') %>

<% if @article %>

    <%= icon('cms') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.name, :id => item.id)) } %>

<% end %>

<% button_bar(:style => 'margin-bottom: 1em;') do %>
  <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>
  <% if profile.has_blog? %>
    <%= button :edit, _('Edit blog'), :action => 'edit', :id => profile.blog.id %>
  <% else %>
    <%= button :add, _('Create blog'), :action => 'new', :type => 'Blog', :parent_id => parent_id %>
  <% end %>

  <% if !@article or !@article.blog? %>
    <%= button :add, _('New folder'), :action => 'new', :type => 'Folder', :parent_id => parent_id %>
  <% end %>
  <%= lightbox_button('new', label_for_new_article(@article), :action => 'new', :parent_id => parent_id) %>
<% end %>

  <%# header %>

    <%= _('Name') %>
    <%= _('Type') %>
    <%= _('Actions') %>

  <%# folders %>
  <% for folder in @folders %>

        <%= image_tag(icon_for_article(folder)) %>
        <%= link_to folder.name, :action => 'view', :id => folder.id %>

        <%= folder.class.short_description %>

        <%= link_to _('Properties'), :action => 'edit', :id => folder.id %>
        <%= link_to _('Public view'), folder.url %>
        <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %>
        <%= link_to _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>

  <% end %>

  <%# non-folder subitems %>
  <% unless @folders.empty? %>

  <% end %>
  <% for item in @subitems %>

        <%= image_tag(icon_for_article(item)) %>
        <%= link_to item.name, :action => 'edit', :id => item.id %>

        <%= item.class.short_description %>

        <%= link_to _('Edit'), :action => 'edit', :id => item.id %>
        <%= link_to _('Public view'), item.url %>
        <%= link_to _('Spread this'), :action => 'publish', :id => item.id %>
        <%= link_to _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %>
        <%= link_to _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %>

  <% end %>

  <% if @subitems.empty? || @folders.empty? %>

<%= _('None') %>

  <% end %>


ActionItem1047: missing a "back" button in CMS

  <%= _('Content management') %>

<% button_bar(:style => 'margin-bottom: 1em;') do %>
  <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>

  <% if !@article or !@article.blog? %>
    <%= button :newfolder, _('New folder'), :action => 'new', :type => 'Folder', :parent_id => parent_id %>
  <% end %>
  <%= lightbox_button('new', label_for_new_article(@article), :action => 'new', :parent_id => parent_id) %>
  <%= button('upload-file', _('Upload files'), :action => 'upload_files', :parent_id => parent_id) %>
  <%= button(:back, _('Back to control panel'), :controller => 'profile_editor', :action => "index") %>
<% end %>

<% if @article %>

    <%= _('Current folder: ') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.slug, :id => item.id)) } %>

<% end %>

  <%# header %>

    <%= _('Name') %>
    <%= _('Type') %>
    <%= _('Actions') %>

  <% if @article %>

        <%= image_tag 'icons-mime/gnome-folder.png' %>
        <% if @article.parent %>
          <%= link_to '.. (parent folder)', :action => 'view', :id => @article.parent.id %>
        <% else %>
          <%= link_to '.. (parent folder)', :action => 'index' %>
        <% end %>

      <%= Folder.short_description %>

  <% end %>

  <%# folders %>
  <% for folder in @folders %>

        <%= image_tag(icon_for_article(folder)) %>
        <%= link_to folder.name, :action => 'view', :id => folder.id %>

        <%= folder.class.short_description %>

        <%= button_without_text :edit, _('Properties'), :action => 'edit', :id => folder.id %>
        <%= button_without_text :eyes, _('Public view'), folder.url %>
        <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %>
        <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>

  <% end %>

  <%# non-folder subitems %>
  <% for item in @subitems %>

        <%= image_tag(icon_for_article(item)) %>
        <%= link_to item.name, :action => 'edit', :id => item.id %>

        <%= item.class.short_description %>

        <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => item.id %>
        <%= button_without_text :eyes, _('Public view'), item.url %>
        <%= button_without_text :spread, _('Spread this'), :action => 'publish', :id => item.id %>
        <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %>
        <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %>

  <% end %>

  <%= _('Content management') %>

<% button_bar(:style => 'margin-bottom: 1em;') do %>
  <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %>

  <% if !@article or !@article.blog? %>
    <%= button :newfolder, _('New folder'), :action => 'new', :type => 'Folder', :parent_id => parent_id %>
  <% end %>
  <%= lightbox_button('new', label_for_new_article(@article), :action => 'new', :parent_id => parent_id) %>
  <%= button('upload-file', _('Upload files'), :action => 'upload_files', :parent_id => parent_id) %>
<% end %>

<% if @article %>

    <%= _('Current folder: ') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.slug, :id => item.id)) } %>

<% end %>

  <%# header %>

    <%= _('Name') %>
    <%= _('Type') %>
    <%= _('Actions') %>

  <% if @article %>

        <%= image_tag 'icons-mime/gnome-folder.png' %>
        <% if @article.parent %>
          <%= link_to '.. (parent folder)', :action => 'view', :id => @article.parent.id %>
        <% else %>
          <%= link_to '.. (parent folder)', :action => 'index' %>
        <% end %>

      <%= Folder.short_description %>

  <% end %>

  <%# folders %>
  <% for folder in @folders %>

        <%= image_tag(icon_for_article(folder)) %>
        <%= link_to folder.name, :action => 'view', :id => folder.id %>

        <%= folder.class.short_description %>

        <%= button_without_text :edit, _('Properties'), :action => 'edit', :id => folder.id %>
        <%= button_without_text :eyes, _('Public view'), folder.url %>
        <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => folder.id }, :method => :post %>
        <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => folder.id }, :method => :post, :confirm => _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>

  <% end %>

  <%# non-folder subitems %>
  <% for item in @subitems %>

        <%= image_tag(icon_for_article(item)) %>
        <%= link_to item.name, :action => 'edit', :id => item.id %>

        <%= item.class.short_description %>

        <%= button_without_text :edit, _('Edit'), :action => 'edit', :id => item.id %>
        <%= button_without_text :eyes, _('Public view'), item.url %>
        <%= button_without_text :spread, _('Spread this'), :action => 'publish', :id => item.id %>
        <%= button_without_text :home, _('Use as homepage'), { :action => 'set_home_page', :id => item.id }, :method => :post %>
        <%= button_without_text :delete, _('Delete'), { :action => 'destroy', :id => item.id }, :method => :post, :confirm => _('Are you sure that you want to remove this item?') %>

  <% end %>


Remove "RSS 2.0" from the title in the XML sidebar.  closes #418

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

Syndicate

  <% if @sb_config['articles'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'feed' %>" title="Articles feed">Articles

  <% end %>
  <% if @sb_config['comments'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'comments' %>" title="Comments feed">Comments

  <% end %>
  <% if @sb_config['trackbacks'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'trackbacks' %>" title="Trackbacks feed">Trackbacks

  <% end %>

Syndicate

  <% if @sb_config['articles'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'feed' %>" title="RSS 2.0 feed">Articles

  <% end %>
  <% if @sb_config['comments'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'comments' %>" title="Comments RSS 2.0 feed">Comments

  <% end %>
  <% if @sb_config['trackbacks'] -%>

<a href="<%= url_for :controller=>'xml', :action=>'feed', :format => @sb_config['format'], :type => 'trackbacks' %>" title="Trackbacks RSS 2.0 feed">Trackbacks

  <% end %>


JS and CSS is prepared in UI app now

JS and CSS is prepared in UI app now

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>MagLev WebTools</title>
    <meta charset="utf-8">
    <link rel="Shortcut Icon" type="image/ico" href="images/favicon.ico">

    <script type="text/javascript">
      window.WebTools = {};
      window.WebTools.location = "<%= @location %>";
    </script>

    <% @stylesheets.each do |href| %>
      <link rel="stylesheet" href="<%= href %>" type="text/css" media="screen">
    <% end %>

    <% @javascripts.each do |src| %>
      <script type="text/javascript" src="<%= src %>"></script>
    <% end %>
  </head>
  <body>
    <%= yield %>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>MagLev WebTools</title>
    <meta charset="utf-8">
    <link rel="Shortcut Icon" type="image/ico" href="images/favicon.ico">

    <link rel="stylesheet" href="<%= @location %>/stylesheets/reset.css"     type="text/css" media="screen">
    <link rel="stylesheet" href="<%= @location %>/stylesheets/webtools.css"  type="text/css" media="screen">

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.11/jquery-ui.min.js"></script>
    <script type="text/javascript">
      window.WebTools = {};
      window.WebTools.location = "<%= @location %>";
    </script>
    <% @scripts.each do |path| %>
      <script type="text/javascript" src="<%= @location %>/javascript/<%= path %>.js"></script>
    <% end %>
  </head>
  <body>
    <%= yield %>
  </body>
</html>


trying to get uploads working (x5)

trying to get uploads working (x5)

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

<%= error_messages_for :files %>

<% form_for(:files, :url => { :controller => 'files' }, :html => { :multipart => true }) do |f| -%>

    File:
    <%= f.file_field :uploaded_data %>

    <%= submit_tag 'Upload' %>

<% end -%>

<%= error_messages_for :files %>

<% form_for(:files, :url => files_path, :html => { :multipart => true }) do |f| -%>

    File:
    <%= f.file_field :uploaded_data %>

    <%= submit_tag 'Upload' %>

<% end -%>


Fixed bug 583 using supplied patch.

Fixed bug 583 using supplied patch.

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

<% @page_heading = 'Text Filters' %>

  <% content_for('tasks') do %>
  <% end %>

Are you sure you want to delete this filter '<%= @textfilter.name %>'?

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

<% @page_heading = 'Text Filters' %>

  <% content_for('tasks') do %>
  <% end %>

Are you sure you want to delete this filter '<%= @textfilter.name %>'?

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


Clearer description that it is things to do.

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

<%=@info_request_count%> requests

<%=@user_count%> users

<%=@track_thing_count%> tracked things

Things to do

<% if @requires_admin_requests.size > 0 %>

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

    <% for @request in @requires_admin_requests %>

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

    <% end %>

<% end %>

<% if @two_week_old_unclassified.size > 0 %>

Classify responses that are still unclassified two weeks after response

    <% for @request in @two_week_old_unclassified %>

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

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

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

    <% for @blank_contact in @blank_contacts %>

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

    <% end %>

<% end %>

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

No pending administration required.

<% end %>

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

<%=@info_request_count%> requests

<%=@user_count%> users

<%=@track_thing_count%> tracked things

<% if @requires_admin_requests.size > 0 %>

Requests requiring admin attention

    <% for @request in @requires_admin_requests %>

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

    <% end %>

<% end %>

<% if @two_week_old_unclassified.size > 0 %>

Still unclassified two weeks after response

    <% for @request in @two_week_old_unclassified %>

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

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

Public authorities with missing contact details

    <% for @blank_contact in @blank_contacts %>

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

    <% end %>

<% end %>

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

No pending administration required.

<% end %>


remove unneeded custom template

remove unneeded custom template

            <%= radio_button "incoming_message", "described_state", "deadline_extended", :id => 'deadline_extended' + id_suffix %>
            <label for="deadline_extended<%=id_suffix%>"><%= _('Authority has requested extension of the deadline.') %>


Only show unsubscribe all if there is more than one entry.

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

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

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

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

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

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

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

<% end %>

Track this person

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

<%=@title%>

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

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

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

    <% if not @is_you %>

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

    <% end %>

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

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

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

                <% end %>
            <% end %>

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

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

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

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

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

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

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

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

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

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

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

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

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

    <% end %>

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

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

None made.

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

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

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

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

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

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

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

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

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

<% end %>

Track this person

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

<%=@title%>

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

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

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

    <% if not @is_you %>

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

    <% end %>

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

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

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

                <% end %>
            <% end %>

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

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

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

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

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

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

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

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

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

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

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

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

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

    <% end %>

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

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

None made.

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

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


Switched save image button to Do It.

Switched save image button to Do It.

Upload Image for <%= @observation.unique_name %>

<%= error_messages_for("img") %>

<%= form_tag({:action => 'save_image'}, :multipart => true) %>
<%= submit_tag("Do It") %>

Upload your picture

<%= file_field("image", "image") %>

Title

<%= text_field("image", "title") %>

Owner

<%= text_field("image", "owner") %>

When

<%= date_select("image", "when", :start_year => Time.now.year-20, :end_year => Time.now.year) %>

Notes

<%= text_area("image", "notes") %>

<%= end_form_tag %>

Upload Image for <%= @observation.unique_name %>

<%= error_messages_for("img") %>

<%= form_tag({:action => 'save_image'}, :multipart => true) %>
<%= submit_tag("Upload file") %>

Upload your picture

<%= file_field("image", "image") %>

Title

<%= text_field("image", "title") %>

Owner

<%= text_field("image", "owner") %>

When

<%= date_select("image", "when", :start_year => Time.now.year-20, :end_year => Time.now.year) %>

Notes

<%= text_area("image", "notes") %>

<%= end_form_tag %>