Slight clarification of removal policy.

Slight clarification of removal policy.

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

Contents

Introduction

Making requests

Privacy policy

FOI officers

Credits

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

Who gets to see my email address? #

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

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

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

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

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

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.

Contents

Introduction

Making requests

Privacy policy

FOI officers

Credits

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

Who gets to see my email address? #

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

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

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

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

Why will my name appear publicly 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.


Include project name in milestone header for gantt chart

<%= @t.milestone.name %> [<%= @t.project.name %>]

    <%= worked_nice(@t.milestone.worked_minutes)%>
    <td id="duration-<%=@t.milestone.dom_id%>" width="1%" style="text-align:right;font-weight:bold;"><%= worked_nice(@t.milestone.duration)%>

	<% if current_user.can?(@t.project,'prioritize')%>
	    <input class="date" tabindex="<%=tab+1%>" id="due-<%=@t.milestone.dom_id%>" name="due" size="8" type="text" style="font-size:11px;" value="<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>" />
	      <img alt="Calendar" class="date" id="due-<%=@t.milestone.dom_id%>-calendar" src="/images/calendar.png" title="Show Calendar"/>

        <%else%>
	<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>
        <% end %>

<%= @t.milestone.name %>

    <%= worked_nice(@t.milestone.worked_minutes)%>
    <td id="duration-<%=@t.milestone.dom_id%>" width="1%" style="text-align:right;font-weight:bold;"><%= worked_nice(@t.milestone.duration)%>

	<% if current_user.can?(@t.project,'prioritize')%>
	    <input class="date" tabindex="<%=tab+1%>" id="due-<%=@t.milestone.dom_id%>" name="due" size="8" type="text" style="font-size:11px;" value="<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>" />
	      <img alt="Calendar" class="date" id="due-<%=@t.milestone.dom_id%>-calendar" src="/images/calendar.png" title="Show Calendar"/>

        <%else%>
	<%= @t.milestone.due_at.strftime(current_user.date_format) if @t.milestone.due_at %>
        <% end %>


Only inputs relevant to price are listed on product\'s search

<% extra_content = @plugins.dispatch(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.dispatch(:asset_product_properties, product)%>

    <%= render :partial => 'search/image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <%=_("from") if has_discount %><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <%=_("by")%><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
             <%= _('/') %> <%= product.unit.name %>
          <% end %>
        <% end %>

          <% if p = product.percentage_from_solidarity_economy %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%= p[0].to_s %>"
              title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>

          <% end %>

          <% if product.price_described? %>
            <% title = (product.inputs.relevant_to_price + product.price_details).map{ |i|
              '
' +
                '
' + i.name + '
' +
                price_span(i.price, :class => 'search-product-input-price') +
              '
' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %>

      <% end %>
    <% else %>
      <%= _('Not available') %>

    <% end %>

    <%= link_to_product product, :class => 'search-result-title' %>

      <%= _('Supplier') %>  <%= link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>

      <% if product.description %>
        <% desc_stripped = strip_tags(product.description) %>
        <%= _('Description') %>  <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %>
      <% end %>

      <% if product.enterprise.region %>
        <%= _('City') %>

<%= city_with_state(product.enterprise.region) %>
      <% end %>

      <% if product.product_qualifiers.count > 0 %>
        <%= _('Qualifiers') %>
        <% product.product_qualifiers.each do |pq| %>
          <% if pq.qualifier %>
            <%= pq.qualifier.name + (pq.certifier.nil? ?  _(";") : '') %>
          <% end %>
          <% if pq.certifier %>
             <%= _('cert. ') + pq.certifier.name + _(";") %>
          <% end %>
        <% end %>
      <% end %>

  <%= extra_content.join('\n') %>
  <% extra_properties.each do |property| %>

<%= property[:name] + ': ' + instance_eval(&property[:content]) %>

  <% end %>

<% extra_content = @plugins.dispatch(:asset_product_extras, product, product.enterprise).collect { |content| instance_eval(&content) } %>
<% extra_properties = @plugins.dispatch(:asset_product_properties, product)%>

    <%= render :partial => 'search/image', :object => product %>

    <% if product.available %>
      <% if product.price && product.price > 0 %>
        <% has_discount = product.discount && product.discount > 0 %>
        <% if product.price %>
          <%=_("from") if has_discount %><%= price_span(product.price, :class => "search-product-price " + (has_discount ? 'with-discount' : '')) %>
          <% if has_discount %>
            <%=_("by")%><%= price_span(product.price_with_discount, :class => "search-product-price") %>
          <% end %>
          <% if product.unit %>
             <%= _('/') %> <%= product.unit.name %>
          <% end %>
        <% end %>

          <% if p = product.percentage_from_solidarity_economy %>
            <div class="search-product-percentage-from-solidarity-economy search-product-ecosol-percentage-icon-<%= p[0].to_s %>"
              title="<%=_('Percentage of inputs from solidarity economy')%>">
              <%= p[1] %>

          <% end %>

          <% if product.price_described? %>
            <% title = (product.inputs + product.price_details).map{ |i|
              '
' +
                '
' + i.name + '
' +
                price_span(i.price, :class => 'search-product-input-price') +
              '
' }.join('') %>
            <%= link_to_function _("Open Price"), '', :title => title, :class => "search-product-price-details" %>
          <% end %>

      <% end %>
    <% else %>
      <%= _('Not available') %>

    <% end %>

    <%= link_to_product product, :class => 'search-result-title' %>

      <%= _('Supplier') %>  <%= link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>

      <% if product.description %>
        <% desc_stripped = strip_tags(product.description) %>
        <%= _('Description') %>  <%= excerpt(desc_stripped, desc_stripped.first(3), 300) %>
      <% end %>

      <% if product.enterprise.region %>
        <%= _('City') %>

<%= city_with_state(product.enterprise.region) %>
      <% end %>

      <% if product.product_qualifiers.count > 0 %>
        <%= _('Qualifiers') %>
        <% product.product_qualifiers.each do |pq| %>
          <% if pq.qualifier %>
            <%= pq.qualifier.name + (pq.certifier.nil? ?  _(";") : '') %>
          <% end %>
          <% if pq.certifier %>
             <%= _('cert. ') + pq.certifier.name + _(";") %>
          <% end %>
        <% end %>
      <% end %>

  <%= extra_content.join('\n') %>
  <% extra_properties.each do |property| %>

<%= property[:name] + ': ' + instance_eval(&property[:content]) %>

  <% end %>


Confirm cancelling work

Confirm cancelling work

<% if session[:hide_dependencies].to_i == 0 || task.active? %>
<div id="task_<%=task.id%>"
<%
 depth ||= 1
 depth = 1 if depth < 1
 classes = ""
 classes = " task_raised_pri" if (task.priority + task.severity_id)/2.0 >= 0.1 && !task.done?
 classes = " task_high_pri" if (task.priority + task.severity_id)/2.0 >= 0.51 && !task.done?
 classes = " task_crit_pri" if (task.priority + task.severity_id)/2.0 >= 1.5 && !task.done?
 classes = " task_low_pri" if (task.priority + task.severity_id)/2 < -0.51 && !task.done?
 classes = " task_lowest_pri" if (task.priority + task.severity_id)/2 < -1.5 && !task.done?

 can_complete = { :disabled => "disabled" } unless current_user.can?(task.project, 'close')
 can_complete ||= {}

 can_work = { :disabled => "disabled" } unless current_user.can?(task.project, 'work')
 can_work ||= {}

 classes << " #{task.project.to_css_name}"
 classes << " override_filter" if defined?(override_filter) && override_filter
 classes << " waiting_deferred" unless task.active?

 classes << " task_active_others" if task.worked_on?
 classes << " task_active" if session[:sheet] && session[:sheet].task_id == task.id
 classes << " task_done" if task.done?
 classes << " task_paused" if session[:sheet] && session[:sheet].task_id == task.id && session[:sheet].paused?
-%>
class="task <%=classes%>" style="position:relative;<% if depth > 1 %>margin-left:<%= 8 + (depth - 1) * 16%>px<% end %>">
<% @task = task %>
<div id="row-<%=task.dom_id%>" class="task-row" style="width:100%;">
  <% if(session[:sheet] && session[:sheet].task.id == task.id) || task.done? -%>
    <div class="popout" id="edit_task_<%=task.id%>" style="position:absolute; width:55px; left: -59px; top: 0px; z-index:10; padding-right:2px;" align="right">
    <% if(session[:sheet] && session[:sheet].task.id == task.id) -%>
        <%= link_to_remote image_tag("time_delete.png", :border => 0, :title => _("Cancel working on %s.", task.name), :class => "tooltip"),
          :url => { :controller => 'tasks', :action => 'cancel_work_ajax', :id => task, :depth => depth },
          :loading => "Element.show('loading');",
          :complete => "Element.hide('loading');",
          :confirm => _("Really abort work?")
            -%>
        <% if session[:sheet].paused? %>
          <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on %s.", task.name), :class => "tooltip"),
            :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => depth },
            :loading => "Element.show('loading');",
            :complete => "Element.hide('loading');" -%>
        <% else %>
          <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on %s.", task.name), :class => "tooltip"),
            :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => depth },
            :loading => "Element.show('loading');",
            :complete => "Element.hide('loading');" -%>
        <% end %>
    <% else -%>
        <% if task.done? -%>
          <% if task.hidden == 0 -%>
            <%= link_to_remote image_tag("folder_add.png", :border => 0, :title => _("Move %s to the Archive.", task.name), :class => "tooltip"),
                  :url => { :controller => 'tasks', :action => 'ajax_hide', :id => task },
                  :loading => "Element.show('loading');",
                  :complete => "Element.hide('loading');",
                  :success => visual_effect(:fade, "task_#{task.id}", :duration => 0.5) -%>
          <% else -%>
            <%= link_to_remote image_tag("folder_go.png", :border => 0, :title => _("Restore %s from the Archive.", task.name), :class => "tooltip"),
                  :url => { :controller => 'tasks', :action => 'ajax_restore', :id => task },
                  :loading => "Element.show('loading');",
                  :complete => "Element.hide('loading');",
                  :success => visual_effect(:fade, "task_#{task.id}", :duration => 0.5) -%>
          <% end -%>
        <% end -%>
      <% end -%>

    <% end -%>

  <div id="task-handle-<%=task.id%>" style="float:left; padding-left:0.4em;display:none;" class="handle">

    <% unless task.done? %>
      <%= check_box("task", "done", { "title" => _("Close %s", task.name), "onclick" => remote_function(:url => { :controller => 'tasks', :action => 'ajax_check', :id => task },
                                                                :loading => "Element.show('loading');",
                                                                :complete => "Element.hide('loading');" ), :class => "button tooltip", :id => "button_#{task.id}" }.merge(can_complete) ) -%>
    <% else %>
      <%= check_box("task", "done", {"title" => _("Revert %s to not completed status.", task.name), "onclick" => remote_function(:url => { :controller => 'tasks', :action => 'ajax_uncheck', :id => task },
                                                                :loading => "Element.show('loading');",
                                                                :complete => "Element.hide('loading');" ), :class => "button tooltip", :checked => "checked", :id => "button_#{task.id}" }.merge(can_complete) ) -%>
    <% end %>

    <% if current_user.option_tracktime.to_i == 1 && can_work.size == 0 -%>
      <% if session[:sheet] && session[:sheet].task.id == task.id -%>
        <%= link_to(image_tag("time_add.png", :border => 0, :class => "tooltip work_icon", :title => _("Stop working on %s.", task.name)), {:controller => 'tasks', :action => 'stop_work'}, { :class => "stop-work-link" } )  -%>
      <% else -%>
        <%= link_to_remote( image_tag("time.png", :border => 0, :class => "tooltip work_icon", :title => _("Start working on %s. Click again when done.", task.name)),
                        :url => {:controller => 'tasks', :action => 'start_work_ajax', :id => task, :depth => depth },
                        :loading => "Element.show('loading');",
                        :complete => "Element.hide('loading');") -%>
      <% end -%>
   <% else -%>

   <% end -%>

<%= avatar_for task.users.first, 25 unless task.users.empty? %>

   <%= link_to_task(task) -%>

     <span id="todo-status-<%= task.dom_id %>">
     <%= link_to_function( "#{task.todo_status}", "Element.toggle('todo-container-#{task.dom_id}');", :class => (task.todos.empty? ? "todo-status-link-empty" :"todo-status-link") ) %>

     <%  if current_user.option_tracktime.to_i == 1 -%>
       <%= "(#{worked_nice(task.worked_minutes)} / #{worked_nice( task.duration )})" if task.duration.to_i > 0 -%>
       <%= "(#{worked_nice(task.worked_minutes)})" if( task.duration.to_i == 0 && task.worked_minutes > 0) -%>
     <% end -%>
     <%= "[#{task.milestone.name}]" unless task.milestone_id.to_i == 0 -%>

   <% name = _("No one")
      name = task.users.collect{|u| u.name}.join(', ') unless task.users.empty?
   %>

   <%= task.full_name %>
   <%= "[#{name}]" %>
   <%= due_in_words(task) if (task.due_at != nil || task.milestone_id.to_i > 0) && !task.done?%>
   <% unless task.todos.empty? %>
   <% end %>

   <div id="todo-container-<%=task.dom_id%>" class="todo-container"<% unless session[:sheet] && session[:sheet].task_id == task.id && task.todos.size > 0 %> style="display:none;"<% end %>>
    <ul id="todo-<%=task.dom_id%>" class="task-todo">
       <% task.todos.select{ |t| t.completed_at.nil? }.each do |@todo| %>
<%= render :partial => "tasks/todo_row" %>
      <% end %>

<% form_remote_tag :url => { :controller => 'tasks', :action => 'create_todo_ajax', :id => task.id, :depth => depth  } ,
       :loading => "Element.show('loading');",
       :complete => "Element.hide('loading');",
       :html => { :id => "todo-form-#{task.dom_id}",
                  :style => "display:none;"
                } do
%>
    <input type="text" id="todo_text_<%=task.id%>" name="todo[name]"> <%= _('or') %> <%= link_to_function(_("Cancel"), "Element.hide('todo-form-#{task.dom_id}');$('new-todo-#{task.dom_id}').show();") %>
<% end %>
    <span id="new-todo-<%=task.dom_id%>" style="padding-left:1.8em;"><%= link_to_function( _('New To-do Item'), "$('todo-form-#{task.dom_id}').show();$('new-todo-#{task.dom_id}').hide();$('todo_text_#{task.id}').focus();") -%>
    <ul id="todo-done-<%=task.dom_id%>" class="task-todo">
      <% task.todos.select{ |t| t.completed_at }.each do |@todo| %>
<%= render :partial => "tasks/todo_row" %>
      <% end %>

<%= sortable_element "todo-#{task.dom_id}", :url => { :controller => 'tasks', :action => 'order_todos', :id => task.id }, :format => "/^[^-]*-(.*)$/", :containment => "todo-#{task.dom_id}", :only => "todo-active" %>

<% if session[:group_by].to_i > 2 %>
  <%= draggable_element "task_#{task.id}", { :revert => true, :ghosting => false, :handle => "'handle'", :constraint => "'vertical'" } %>
<% end %>

<% end %>

<% if session[:hide_dependencies].to_i == 0 || task.active? %>
<div id="task_<%=task.id%>"
<%
 depth ||= 1
 depth = 1 if depth < 1
 classes = ""
 classes = " task_raised_pri" if (task.priority + task.severity_id)/2.0 >= 0.1 && !task.done?
 classes = " task_high_pri" if (task.priority + task.severity_id)/2.0 >= 0.51 && !task.done?
 classes = " task_crit_pri" if (task.priority + task.severity_id)/2.0 >= 1.5 && !task.done?
 classes = " task_low_pri" if (task.priority + task.severity_id)/2 < -0.51 && !task.done?
 classes = " task_lowest_pri" if (task.priority + task.severity_id)/2 < -1.5 && !task.done?

 can_complete = { :disabled => "disabled" } unless current_user.can?(task.project, 'close')
 can_complete ||= {}

 can_work = { :disabled => "disabled" } unless current_user.can?(task.project, 'work')
 can_work ||= {}

 classes << " #{task.project.to_css_name}"
 classes << " override_filter" if defined?(override_filter) && override_filter
 classes << " waiting_deferred" unless task.active?

 classes << " task_active_others" if task.worked_on?
 classes << " task_active" if session[:sheet] && session[:sheet].task_id == task.id
 classes << " task_done" if task.done?
 classes << " task_paused" if session[:sheet] && session[:sheet].task_id == task.id && session[:sheet].paused?
-%>
class="task <%=classes%>" style="position:relative;<% if depth > 1 %>margin-left:<%= 8 + (depth - 1) * 16%>px<% end %>">
<% @task = task %>
<div id="row-<%=task.dom_id%>" class="task-row" style="width:100%;">
  <% if(session[:sheet] && session[:sheet].task.id == task.id) || task.done? -%>
    <div class="popout" id="edit_task_<%=task.id%>" style="position:absolute; width:55px; left: -59px; top: 0px; z-index:10; padding-right:2px;" align="right">
    <% if(session[:sheet] && session[:sheet].task.id == task.id) -%>
        <%= link_to_remote image_tag("time_delete.png", :border => 0, :title => _("Cancel working on %s.", task.name), :class => "tooltip"),
          :url => { :controller => 'tasks', :action => 'cancel_work_ajax', :id => task, :depth => depth },
          :loading => "Element.show('loading');",
          :complete => "Element.hide('loading');" -%>
        <% if session[:sheet].paused? %>
          <%= link_to_remote image_tag("time_resume.png", :border => 0, :title => _("Resume working on %s.", task.name), :class => "tooltip"),
            :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => depth },
            :loading => "Element.show('loading');",
            :complete => "Element.hide('loading');" -%>
        <% else %>
          <%= link_to_remote image_tag("time_pause.png", :border => 0, :title => _("Pause working on %s.", task.name), :class => "tooltip"),
            :url => { :controller => 'tasks', :action => 'pause_work_ajax', :id => task, :depth => depth },
            :loading => "Element.show('loading');",
            :complete => "Element.hide('loading');" -%>
        <% end %>
    <% else -%>
        <% if task.done? -%>
          <% if task.hidden == 0 -%>
            <%= link_to_remote image_tag("folder_add.png", :border => 0, :title => _("Move %s to the Archive.", task.name), :class => "tooltip"),
                  :url => { :controller => 'tasks', :action => 'ajax_hide', :id => task },
                  :loading => "Element.show('loading');",
                  :complete => "Element.hide('loading');",
                  :success => visual_effect(:fade, "task_#{task.id}", :duration => 0.5) -%>
          <% else -%>
            <%= link_to_remote image_tag("folder_go.png", :border => 0, :title => _("Restore %s from the Archive.", task.name), :class => "tooltip"),
                  :url => { :controller => 'tasks', :action => 'ajax_restore', :id => task },
                  :loading => "Element.show('loading');",
                  :complete => "Element.hide('loading');",
                  :success => visual_effect(:fade, "task_#{task.id}", :duration => 0.5) -%>
          <% end -%>
        <% end -%>
      <% end -%>

    <% end -%>

  <div id="task-handle-<%=task.id%>" style="float:left; padding-left:0.4em;display:none;" class="handle">

    <% unless task.done? %>
      <%= check_box("task", "done", { "title" => _("Close %s", task.name), "onclick" => remote_function(:url => { :controller => 'tasks', :action => 'ajax_check', :id => task },
                                                                :loading => "Element.show('loading');",
                                                                :complete => "Element.hide('loading');" ), :class => "button tooltip", :id => "button_#{task.id}" }.merge(can_complete) ) -%>
    <% else %>
      <%= check_box("task", "done", {"title" => _("Revert %s to not completed status.", task.name), "onclick" => remote_function(:url => { :controller => 'tasks', :action => 'ajax_uncheck', :id => task },
                                                                :loading => "Element.show('loading');",
                                                                :complete => "Element.hide('loading');" ), :class => "button tooltip", :checked => "checked", :id => "button_#{task.id}" }.merge(can_complete) ) -%>
    <% end %>

    <% if current_user.option_tracktime.to_i == 1 && can_work.size == 0 -%>
      <% if session[:sheet] && session[:sheet].task.id == task.id -%>
        <%= link_to(image_tag("time_add.png", :border => 0, :class => "tooltip work_icon", :title => _("Stop working on %s.", task.name)), {:controller => 'tasks', :action => 'stop_work'}, { :class => "stop-work-link" } )  -%>
      <% else -%>
        <%= link_to_remote( image_tag("time.png", :border => 0, :class => "tooltip work_icon", :title => _("Start working on %s. Click again when done.", task.name)),
                        :url => {:controller => 'tasks', :action => 'start_work_ajax', :id => task, :depth => depth },
                        :loading => "Element.show('loading');",
                        :complete => "Element.hide('loading');") -%>
      <% end -%>
   <% else -%>

   <% end -%>

<%= avatar_for task.users.first, 25 unless task.users.empty? %>

   <%= link_to_task(task) -%>

     <span id="todo-status-<%= task.dom_id %>">
     <%= link_to_function( "#{task.todo_status}", "Element.toggle('todo-container-#{task.dom_id}');", :class => (task.todos.empty? ? "todo-status-link-empty" :"todo-status-link") ) %>

     <%  if current_user.option_tracktime.to_i == 1 -%>
       <%= "(#{worked_nice(task.worked_minutes)} / #{worked_nice( task.duration )})" if task.duration.to_i > 0 -%>
       <%= "(#{worked_nice(task.worked_minutes)})" if( task.duration.to_i == 0 && task.worked_minutes > 0) -%>
     <% end -%>
     <%= "[#{task.milestone.name}]" unless task.milestone_id.to_i == 0 -%>

   <% name = _("No one")
      name = task.users.collect{|u| u.name}.join(', ') unless task.users.empty?
   %>

   <%= task.full_name %>
   <%= "[#{name}]" %>
   <%= due_in_words(task) if (task.due_at != nil || task.milestone_id.to_i > 0) && !task.done?%>
   <% unless task.todos.empty? %>
   <% end %>

   <div id="todo-container-<%=task.dom_id%>" class="todo-container"<% unless session[:sheet] && session[:sheet].task_id == task.id && task.todos.size > 0 %> style="display:none;"<% end %>>
    <ul id="todo-<%=task.dom_id%>" class="task-todo">
       <% task.todos.select{ |t| t.completed_at.nil? }.each do |@todo| %>
<%= render :partial => "tasks/todo_row" %>
      <% end %>

<% form_remote_tag :url => { :controller => 'tasks', :action => 'create_todo_ajax', :id => task.id, :depth => depth  } ,
       :loading => "Element.show('loading');",
       :complete => "Element.hide('loading');",
       :html => { :id => "todo-form-#{task.dom_id}",
                  :style => "display:none;"
                } do
%>
    <input type="text" id="todo_text_<%=task.id%>" name="todo[name]"> <%= _('or') %> <%= link_to_function(_("Cancel"), "Element.hide('todo-form-#{task.dom_id}');$('new-todo-#{task.dom_id}').show();") %>
<% end %>
    <span id="new-todo-<%=task.dom_id%>" style="padding-left:1.8em;"><%= link_to_function( _('New To-do Item'), "$('todo-form-#{task.dom_id}').show();$('new-todo-#{task.dom_id}').hide();$('todo_text_#{task.id}').focus();") -%>
    <ul id="todo-done-<%=task.dom_id%>" class="task-todo">
      <% task.todos.select{ |t| t.completed_at }.each do |@todo| %>
<%= render :partial => "tasks/todo_row" %>
      <% end %>

<%= sortable_element "todo-#{task.dom_id}", :url => { :controller => 'tasks', :action => 'order_todos', :id => task.id }, :format => "/^[^-]*-(.*)$/", :containment => "todo-#{task.dom_id}", :only => "todo-active" %>

<% if session[:group_by].to_i > 2 %>
  <%= draggable_element "task_#{task.id}", { :revert => true, :ghosting => false, :handle => "'handle'", :constraint => "'vertical'" } %>
<% end %>

<% end %>


container-block: add title to save and resize buttons

<% edit_mode = @controller.send(:boxes_editor?) && @controller.send(:uses_design_blocks?) %>
<% box_decorator = edit_mode ? self : BoxesHelper::DontMoveBlocks %>

<div class="box" id="box-<%= block.container_box.id %>">
  <%= display_box_content(block.container_box, nil) %>

<% if edit_mode %>

    <a href="#" onclick="toggleMoveContainerChildren(<%= block.id %>, <%= block.container_box.id %>); return false;" class="button icon-resize" title=<%= _('Resize blocks').to_json %>>
    <%= link_to_remote '', :url => { :controller => @controller.boxes_holder.kind_of?(Environment) ? 'container_block_plugin_admin' : 'container_block_plugin_myprofile', :action => 'saveWidths', :id => block.id },
                           :with => "containerChildrenWidth(#{block.id}, #{block.container_box.id})",
    :html => {:class => "button icon-save container_block_save", :id => "container_block_save_#{block.id}", :title => _('Save') },
                           :loading => "open_loading(DEFAULT_LOADING_MESSAGE);",
                           :loaded => "close_loading();",
                           :complete => "display_notice(request.responseText);"%>

<% end %>

<% edit_mode = @controller.send(:boxes_editor?) && @controller.send(:uses_design_blocks?) %>
<% box_decorator = edit_mode ? self : BoxesHelper::DontMoveBlocks %>

<div class="box" id="box-<%= block.container_box.id %>">
  <%= display_box_content(block.container_box, nil) %>

<% if edit_mode %>

    <a href="#" onclick="toggleMoveContainerChildren(<%= block.id %>, <%= block.container_box.id %>); return false;" class="button icon-resize">
    <%= link_to_remote '', :url => { :controller => @controller.boxes_holder.kind_of?(Environment) ? 'container_block_plugin_admin' : 'container_block_plugin_myprofile', :action => 'saveWidths', :id => block.id },
                           :with => "containerChildrenWidth(#{block.id}, #{block.container_box.id})",
                           :html => {:class => "button icon-save container_block_save", :id => "container_block_save_#{block.id}" },
                           :loading => "open_loading(DEFAULT_LOADING_MESSAGE);",
                           :loaded => "close_loading();",
                           :complete => "display_notice(request.responseText);"%>

<% end %>


Translate name, address and DOB labels.

Translate name, address and DOB labels.

Žádost o zpřístupnění informace ve smyslu zákona č. 106/1999 Sb., o svobodném přístupu k
informacím.

Povinný subjekt:
<%= @outgoing_message.info_request.public_body.name %>

Žadatel:
<%-# !!!IF YOU CHANGE THE FORMAT OF THE BLOCK BELOW, ADD A NEW CENSOR RULE!!! -%>
===================================================================
# Jméno: <%= @outgoing_message.info_request.user.name %>
# Datum narození:  <%= @outgoing_message.info_request.user.dob %>
<%= @outgoing_message.info_request.user.address.gsub(/^/, "# Adresa: ") %>
===================================================================

Žádám o následující informaci:

<%= @outgoing_message.body.strip %>

Informaci poskytněte elektronicky na email: <%= @outgoing_message.info_request.incoming_email %>

Řádným a včasným zpřístupněním informace na základě této žádosti nebo jiným posouzením
žádosti podle zákona č. 106/1999 Sb., o svobodném přístupu k informacím, beru na vědomí, že
jste splnili svou povinnosti podle výše uvedeného zákona.
Datum podání:

<%= simple_date(Time.now) %>
-------------------------------------------------------------------

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

-------------------------------------------------------------------

Žádost o zpřístupnění informace ve smyslu zákona č. 106/1999 Sb., o svobodném přístupu k
informacím.

Povinný subjekt:
<%= @outgoing_message.info_request.public_body.name %>

Žadatel:
<%-# !!!IF YOU CHANGE THE FORMAT OF THE BLOCK BELOW, ADD A NEW CENSOR RULE!!! -%>
===================================================================
# Name: <%= @outgoing_message.info_request.user.name %>
# DOB:  <%= @outgoing_message.info_request.user.dob %>
<%= @outgoing_message.info_request.user.address.gsub(/^/, "# Address: ") %>
===================================================================

Žádám o následující informaci:

<%= @outgoing_message.body.strip %>

Informaci poskytněte elektronicky na email: <%= @outgoing_message.info_request.incoming_email %>

Řádným a včasným zpřístupněním informace na základě této žádosti nebo jiným posouzením
žádosti podle zákona č. 106/1999 Sb., o svobodném přístupu k informacím, beru na vědomí, že
jste splnili svou povinnosti podle výše uvedeného zákona.
Datum podání:

<%= simple_date(Time.now) %>
-------------------------------------------------------------------

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

-------------------------------------------------------------------


Use a root relative URL for the donation button image.

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

    <%= javascript_include_tag 'prototype' %>
    <%= javascript_include_tag 'site' %>

    <%= stylesheet_link_tag 'site' %>
    <%= stylesheet_link_tag 'print', :media => "print" %>
    <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
    <title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>

      <% if @notice || flash[:notice] %>

<%= @notice || flash[:notice] %>

      <% end %>

      <%= yield %>

      <% if @user and @user.id %>
        Welcome, <%= link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}%> |
        <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
        <%= yield :greeting %>
        <%= link_to "inbox (#{@user.new_messages.size})", {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
        <%= link_to 'logout', {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
      <% else %>
        <%= link_to 'log in', {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
        <%= link_to 'sign up', {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
      <% end %>

        <%
        viewclass = ''
        editclass = ''
        exportclass = ''
        traceclass = ''
        viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
        editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
        exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
        traceclass = 'active' if params['controller'] == 'trace'
        diaryclass = 'active' if params['controller'] == 'diary_entry'
        %>

<%= link_to 'View', {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %>

<%= link_to 'Edit', {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %>

        <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>

<%= link_to_remote 'Export', {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>

        <% else %>

<%= link_to 'Export', {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass} %>

        <% end %>

<%= link_to 'GPS Traces', {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %>

<%= link_to 'User Diaries', {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %>

OpenStreetMap

          <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %>

The Free Wiki World Map

      <% unless @user %>

          OpenStreetMap is a free editable map of the whole world. It
          is made by people like you.

          OpenStreetMap allows you to view, edit and use geographical
          data in a collaborative way from anywhere on Earth.

          OpenStreetMap's hosting is kindly supported by the
          UCL VR Centre and
          bytemark.

      <% end %>

      <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>

        The OpenStreetMap database is currently offline while
        essential database maintenance work is carried out.

      <% elsif OSM_STATUS == :api_readonly %>

        The OpenStreetMap database is currently in read-only mode while
        essential database maintenance work is carried out.

      <% end %>

      <% if false %>

        Support OpenStreetMap by
        donating
        to the Hardware Upgrade Fund.

      <% end %>

        Help & Wiki

        News blog

        Shop

        <%= yield :left_menu %>

      <%= yield :optionals %>


changes made to correctly download submitted files

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

<%if @files.size == 0 and @assgt.wiki_type.name == "No"%>

<%else%>
Submitted Files

<%end%>

<%
 _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
 if @assgt.wiki_type.name == "DokuWiki" %>

DokuWiki Review Links:

<%= review_dokuwiki @assgt.directory_path, _time, @author_name  %>

<% elsif @assgt.wiki_type.name == "MediaWiki" %>

MediaWiki Review Links:

<%if @assgt.team_assignment  # The lookup of all team members should be put in a wiki helper
  	for team_member in @team_members
		member_name = User.find(team_member.user_id).name
%>
	<%= review_mediawiki_group @assgt.directory_path, _time, member_name  %>
	<%end%>
<%else%>
	<%= review_mediawiki @assgt.directory_path, _time, @author_name  %>
<%end%>

<% end %>

<% for file in @files %>
	<% if params[:action] == "new_review" %>

<%= link_to File.basename(file), :action => 'view_file', :id => @mapping_id, :fname => File.basename(file),"current_folder[name]" => @current_folder.name %>

	<%else%>

<%= link_to File.basename(file), :action => 'edit_review', :id => @mapping_id, :fname => File.basename(file),"current_folder[name]" => @current_folder.name %>

	<%end%>
<% end %>

<%if @assgt.team_assignment %>
	<% for team_member in @team_members %>

	<% submitted = Participant.find(:first, :conditions =>["user_id = ? and assignment_id = ?",team_member.user_id,@assgt.id]).submitted_hyperlink
	if submitted !=nil
	%>
	URL to file submission (if available):<%= submitted %>

	<% end%>
	<% end %>
<%else %>
	<% if @link != nil %>
		Hyperlink: <a href="<%= @link %>" target="new"><%= @link %>

	<% end %>
<%end%>

<%if @files.size == 0 and @assgt.wiki_type.name == "No"%>

<%else%>
Submitted Files

<%end%>

<%
 _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
 if @assgt.wiki_type.name == "DokuWiki" %>

DokuWiki Review Links:

<%= review_dokuwiki @assgt.directory_path, _time, @author_name  %>

<% elsif @assgt.wiki_type.name == "MediaWiki" %>

MediaWiki Review Links:

<%if @assgt.team_assignment  # The lookup of all team members should be put in a wiki helper
  	for team_member in @team_members
		member_name = User.find(team_member.user_id).name
%>
	<%= review_mediawiki_group @assgt.directory_path, _time, member_name  %>
	<%end%>
<%else%>
	<%= review_mediawiki @assgt.directory_path, _time, @author_name  %>
<%end%>

<% end %>

<% for file in @files %>

<%= link_to File.basename(file), :action => 'edit_review', :id => @mapping_id, :fname => File.basename(file),"current_folder[name]" => @current_folder.name %>

<% end %>

<%if @assgt.team_assignment %>
	<% for team_member in @team_members %>

	<% submitted = Participant.find(:first, :conditions =>["user_id = ? and assignment_id = ?",team_member.user_id,@assgt.id]).submitted_hyperlink
	if submitted !=nil
	%>
	URL to file submission (if available):<%= submitted %>

	<% end%>
	<% end %>
<%else %>
	<% if @link != nil %>
		Hyperlink: <a href="<%= @link %>" target="new"><%= @link %>

	<% end %>
<%end%>


Changed the flickr template to use a list instead of br's. fixes #56

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

<%= flickr.title  %> (<%= link_to "flickr", flickr.link %>)

<% for pic in flickr.pics.to_a[0..3] -%>

<%= image_tag pic.thumb, :alt => pic.title, :style => "border: 1px solid black" %>

<% end -%>

<%= flickr.title  %> (<%= link_to "flickr", flickr.link %>)

<% for pic in flickr.pics.to_a[0..3] -%>
<img src="<%= pic.thumb %>" alt="<%= pic.title %>" style="border: 1px solid black"/>

<% end -%>


ActionItem154: removing default title from home page. It must be written in the description.

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

<%= flash[:notice] %>

<%= @environment.description %>

<%= _('Search') %>

  <% form_tag :controller => 'search', :action => 'index' do %>

      <%= text_field_tag('query', '', :size => 50) %>
      <%= submit_button(:search, _('Search')) %>

      <%= lightbox_link_to _('More search options'), :controller => 'search', :action => 'popup' %>

  <% end %>

<%= flash[:notice] %>

<%= @environment.name %>

<%= @environment.description %>

<%= _('Search') %>

  <% form_tag :controller => 'search', :action => 'index' do %>

      <%= text_field_tag('query', '', :size => 50) %>
      <%= submit_button(:search, _('Search')) %>

      <%= lightbox_link_to _('More search options'), :controller => 'search', :action => 'popup' %>

  <% end %>


Handle when no teams to list for organisation.

  <% if @teams.empty? -%>

There are no teams yet.

  <% else -%>

The following teams are associated with this organisation.

<% for team in @teams %>

<%= link_to team.title,  team_url(:team => team) %>
<% end %>

  <% end -%>

<% if authorised? %>

More

<%= link_to 'New team...', new_team_url %>

<% end %>

All done?

<%= link_to 'Return to home', home_url %>

The following teams are associated with this organisation.

<% for team in @teams %>

<%= link_to team.title,  team_url(:team => team) %>
<% end %>

<% if authorised? %>

More

<%= link_to 'New team...', new_team_url %>

<% end %>

All done?

<%= link_to 'Return to home', home_url %>


fixed the static content plugin's appearance in firefox

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

<%= form_tag({},{:id => 'configure_'+@sidebar.id.to_s, :class=>'configblock'}) %>
  Title

  <input class="text" type="text" name="configure[title]" value="<%=h @sidebar.staged_config['title'] %>"/>

  Content

  <textarea rows="10" style="width:265px" name="configure[body]">
<%=h @sidebar.staged_config['body'] %></textarea>
<%= end_form_tag %>

<%= observe_form "configure_"+@sidebar.id.to_s,
    :url => { :action => "save_config", :id=>@sidebar.id},
    :with => 'value'
 %>

<%= form_tag({},{:id => 'configure_'+@sidebar.id.to_s, :class=>'configblock'}) %>
  Title
  <input class="text" type="text" name="configure[title]" value="<%=h @sidebar.staged_config['title'] %>"/>

  Linked URLs

  <textarea rows="10" cols="34" name="configure[body]">
<%=h @sidebar.staged_config['body'] %></textarea>
<%= end_form_tag %>

<%= observe_form "configure_"+@sidebar.id.to_s,
    :url => { :action => "save_config", :id=>@sidebar.id},
    :with => 'value'
 %>


Removed unnecessary #to_i call that was causing a problem for some users

<% value = item.send(relationship.name) -%>
<% key_value_pair = relationship.enumeration_key_for(value) -%>
<%= key_value_pair ? key_value_pair.first : relationship.unassigned_value %>

<% value = item.send(relationship.name).to_i -%>
<% key_value_pair = relationship.enumeration_key_for(value) -%>
<%= key_value_pair ? key_value_pair.first : relationship.unassigned_value %>


Updated text on result edit page

Updated text on result edit page

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

<%= error_messages_for 'result' %>

<%= form_tag({:controller => 'results', :action => 'update', :id => @result.to_param}) %>
<%= hidden_field 'result', 'id' %>

		<% for column in @result.race.result_columns_or_default %>
		<%= column %>
		<% end %>

		<% for column in @result.race.result_columns_or_default %>
		<%= text_field('result', column, :size => grid_columns(column).size, :autocomplete => 'off') if @result.respond_to?(grid_columns(column).field) %>
		<% end %>

		<td colspan="<%= @result.race.result_columns_or_default.size %>" align="right">
			<%= submit_tag "Save" %>

<%= end_form_tag %>

To remove a racer from the result, erase both the first name and last name.

If you change the racer name to an existing racer or alias, the result will move to that racer.
This will create an alias for the old name.

If the new racer name doesn't exist, a new racer will be created.

Team names work the same way.

<%= error_messages_for 'result' %>

<%= form_tag({:controller => 'results', :action => 'update', :id => @result.to_param}) %>
<%= hidden_field 'result', 'id' %>

		<% for column in @result.race.result_columns_or_default %>
		<%= column %>
		<% end %>

		<% for column in @result.race.result_columns_or_default %>
		<%= text_field('result', column, :size => grid_columns(column).size, :autocomplete => 'off') if @result.respond_to?(grid_columns(column).field) %>
		<% end %>

		<td colspan="<%= @result.race.result_columns_or_default.size %>" align="right">
			<%= submit_tag "Save" %>

<%= end_form_tag %>

To remove a racer from the result, erase both the first name and last name.

If you change the racer name to an existing racer or alias, the result will move to that racer. This will not create any aliases.

If the new racer name doesn't exist, a new racer will be created.

Team names work the same way.


add view caching for Applying sections

add view caching for Applying sections

this makes the page much quicker to render, but I have a nagging feeling
I disabled it earlier for some reason, but as far as I can think it
should expire fragments properly

<% @project ||= @show_projects.first -%>

<%= your_project.title %>

<%= render :remote, :controller => 'reports', :action => :project_stats, :project_id => your_project.id %>

<%
@viewer.set_project(your_project)

title = ""
if @viewer.is_eventgroup_coordinator?(@eg)
    title += ", Projects Coordinator"
end
if @viewer.is_project_director?
    title += ", Project Director"
end
if @viewer.is_project_administrator?
    title += ", Project Administrator"
end
if @viewer.is_support_coach?
    title += ", Support Coach"
end
if @viewer.is_project_staff?
    title += ", Project Staff"
end
if @viewer.is_processor?
    title += ", Processor"
end

%>

<%= "#{@viewer.name}#{title}" %>

<% if @viewer.is_support_coach? || @viewer.is_atleast_project_staff(your_project) %>
    <%= render :partial => "support_coach_list", :locals => { :project => your_project } %>
<% end %>

<% if !@viewer.is_student?(@eg) %>
  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Acceptance',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

      <%= link_to 'File paperwork', :action => 'find_prep_items', :project_id => your_project.id, :command =>'received' %>
      <%= link_to 'Assign optional paperwork items', :action => 'find_prep_items', :project_id => your_project.id , :command =>'optional' %>

Accepted pile:

	      <%= render :partial => "accepted_pile", :locals => { :project => your_project } %>

  <% end %>

    <% @can_evaluate = @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
    <% appln_includes = [ :references, { :viewer => { :persons => :campuses } }, :preference1, :profiles ]
       @processor_list = Applying.find_all_by_project_id your_project.id,
         :include => [
          :project,
          :appln,
          { :locked_by => :persons }
        ]
    %>

  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Applying',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

Processor's pile:

      <%= render :partial => "processor_pile", :locals => { :project => your_project } %>

  <% end %>

  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'StaffProfile',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

Staff:

        <%= render :partial => "staff_pile", :locals => { :project => your_project } %>

  <% end %>

  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Withdrawn',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

    <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>

Withdrawn pile:

        <%= render :partial => "withdrawn_pile", :locals => {:project => your_project }%>

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

<% @project ||= @show_projects.first -%>

<%= your_project.title %>

<%= render :remote, :controller => 'reports', :action => :project_stats, :project_id => your_project.id %>

<%
@viewer.set_project(your_project)

title = ""
if @viewer.is_eventgroup_coordinator?(@eg)
    title += ", Projects Coordinator"
end
if @viewer.is_project_director?
    title += ", Project Director"
end
if @viewer.is_project_administrator?
    title += ", Project Administrator"
end
if @viewer.is_support_coach?
    title += ", Support Coach"
end
if @viewer.is_project_staff?
    title += ", Project Staff"
end
if @viewer.is_processor?
    title += ", Processor"
end

%>

<%= "#{@viewer.name}#{title}" %>

<% if @viewer.is_support_coach? || @viewer.is_atleast_project_staff(your_project) %>
    <%= render :partial => "support_coach_list", :locals => { :project => your_project } %>
<% end %>

<% if !@viewer.is_student?(@eg) %>
  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Acceptance',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

      <%= link_to 'File paperwork', :action => 'find_prep_items', :project_id => your_project.id, :command =>'received' %>
      <%= link_to 'Assign optional paperwork items', :action => 'find_prep_items', :project_id => your_project.id , :command =>'optional' %>

Accepted pile:

	      <%= render :partial => "accepted_pile", :locals => { :project => your_project } %>

  <% end %>

    <% @can_evaluate = @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
    <% appln_includes = [ :references, { :viewer => { :persons => :campuses } }, :preference1, :profiles ]
       @processor_list = Applying.find_all_by_project_id your_project.id,
         :include => [
          :project,
          :appln,
          { :locked_by => :persons }
        ]
    %>

Processor's pile:

      <%= render :partial => "processor_pile", :locals => { :project => your_project } %>

  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'StaffProfile',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

Staff:

        <%= render :partial => "staff_pile", :locals => { :project => your_project } %>

  <% end %>

  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Withdrawn',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

    <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>

Withdrawn pile:

        <%= render :partial => "withdrawn_pile", :locals => {:project => your_project }%>

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


Fixed preference page

Fixed preference page

      <%=_ 'User Settings' %>

            <% form_tag :action => 'update_preferences', :id => @user do %><%= render :partial => "preferences" %>

            <%= submit_tag _("Save"), :class => 'nolabel' %><% end %>
          </fieldset>

        <fieldset>
          <legend>
            <%=_ 'Custom Avatar' %>
          </legend>

                <%= "" %>

              To change your avatar, login to gravatar.com with your EMRL email address and password.

           Change Avatar
        </fieldset>

          <% if current_user.admin > 1 %>
                    <fieldset>
                      <legend>
              <%=_ 'Miscellaneous Administration' %>
            </legend>
          Client List

          Statistics

          System Settings

          Manage News

          <a href="<%=request.protocol%><%=request.host_with_port%>/login/shortlist_auth/<%= current_user.autologin %>">Mobile View

          Work RSS Feed

          Create User

          <% end %>
                    </fieldset>

      <%=_ 'User Settings' %>

            <% form_tag :action => 'update_preferences', :id => @user do %><%= render :partial => "preferences" %>

            <%= submit_tag _("Save"), :class => 'nolabel' %><% end %>
          </fieldset>

        <fieldset>
          <legend>
            <%=_ 'Custom Avatar' %>
          </legend>

                <%= "" %>

              To change your avatar, login to gravatar.com with your EMRL email address and password.

           Change Avatar
        </fieldset>

          <% if current_user.admin > 1 %>
                    <fieldset>
                      <legend>
              <%=_ 'Miscellaneous Administration' %>
            </legend>
          Statistics

          System Settings

          Manage News

          <a href="<%=request.protocol%><%=request.host_with_port%>/login/shortlist_auth/<%= current_user.autologin %>">Mobile View

          Work RSS Feed

          Create User

          <% end %>
                    </fieldset>


* searchresults.rhtml: Avoid null results.

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

<% @title = "DedaWiki search results for: #{params[:q]}" %>

<% if !@results.nil? && @results.length > 0 %>

<% @results.each do |r| %>

<%= page_link(r) -%>

<% end %>

<% else %>
No results found for "<%= params[:q] -%>"
<% end %>

<% @title = "DedaWiki search results for: #{params[:q]}" %>

<% if @results.length > 0 %>

<% @results.each do |r| %>

<%= page_link(r) -%>

<% end %>

<% else %>
No results found for "<%= params[:q] -%>"
<% end %>


Revert typo

Revert typo

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

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

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

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

        <%= info_request.display_status %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'followup_sent' %>
            <%=event.display_status %>
            sent to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'response' %>
            <%=event.display_status %>
            by <%= public_body_link_absolute(info_request.public_body) %>
            to <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'comment' %>
            Request to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>.
            Annotated by <%= user_link_absolute(event.comment.user) %>
            on <%= simple_date(event.created_at) %>.
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>

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

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

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

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

        <%= info_request.display_status %>

        <% if event.event_type == 'sent' %>
            Request sent to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'followup_sent' %>
            <%=event.display_status %>
            sent to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'response' %>
            <%=event.display_status %>
            by <%= public_body_link_absolute(info_request.public_body) %>
            to <%= user_link_absolute(info_request.user) %>
            on <%= simple_date(event.created_at) %>.
        <% elsif event.event_type == 'comment' %>
            Request to <%= public_body_link_absolute(info_request.public_body) %>
            by <%= user_link_absolute(info_request.user) %>.
            Annotated by <%= user_link_absolute(event.comment.user) %>
            on <%= simple_date(event.created_at) %>.
        <% else %>
            <% raise "unknown event type indexed " + event.event_type %>
        <% end %>


Fix the assets menu in scarletred theme

Fix the assets menu in scarletred theme

(ActionItem1529)


Enable disabling of similar search.

Enable disabling of similar search.

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

<% if @info_request.awaiting_description %>

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

<% end %>

Track this request

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

Act on what you've learnt

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

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

    <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>

Similar requests

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

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

        <% end %>

     <% end %>

<%=@title%>

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

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

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

    <% if @info_request.awaiting_description %>

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

    <% end %>

Things to do with this request

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

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

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

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

<% if @info_request.awaiting_description %>

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

<% end %>

Track this request

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

Act on what you've learnt

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

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

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

Similar requests

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

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

        <% end %>
     <% end %>

<%=@title%>

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

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

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

    <% if @info_request.awaiting_description %>

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

    <% end %>

Things to do with this request

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

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

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


ActionItem25: cosmetic change in search result template

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

 <%= _('Search results for "%s" ') % @query %>

<% @results.each do |hit| %>
  <%= render :partial => partial_for_hit(hit.class), :locals => { :hit => hit } %>

    <%= _('Relevance: %d%%') % relevance_for(hit) %>

<% end %>

 <%= _('Search results')  %>

 <%= _('Searching for: %s') % @query  %>

<% @results.each do |hit| %>
  <%= render :partial => partial_for_hit(hit.class), :locals => { :hit => hit } %>

    <%= _('Relevance: %d%%') % relevance_for(hit) %>

<% end %>


Added an inner join to avoid problems with orphan article versions

 Screen Name:  <%= @user.display_name %>

Location:  <%= @user.location %>

Website:  <%= @user.website %>

About:  <%= @user.about %>

            <% if @user==current_user %><%= link_to "Update your profile.", { :action => "update_profile", :user_id => @user.id } %><% end %>

Recent Notes

        Note

        Page

        Date

			<% @user.notes.find(:all, :limit => 10).each do |note| %>

					<%= link_to(truncate(note.title, 40),
								{ :controller => 'display',
								  :action => 'display_page',
								  :page_id => note.page_id,
								  :anchor => "comment_#{note.id}" }) %>
					"<%= note.page.title  %>"
   					<%= note.created_at.strftime("%m/%d/%Y %I:%M %p")%>

			<% end%>

Recent Page Edits

        Work

        Page

        Version

        Date

        Action

 <% for version in @user.page_versions.find(:all, :limit => 10) %>

     <%= version.page.work.title %>

       <%= link_to(version.page.title,
                  { :controller => 'page_version',
                    :action => 'list',
                    :page_id => version.page.id,
                    :ol => 'u_ver_p_page' }) %>

     <%= version.page_version %>
     <%= version.created_on.strftime("%m/%d/%Y %I:%M %p") %>
     <%= link_to('view',
                     { :controller => 'page_version',
                       :action => 'show',
                       :page_version_id => version.id,
                       :ol => 'u_ver_p_view'}) %>

 <% end %>

Recent Article Edits

        Article

        Version

        Date

        Action

 <% for version in @user.article_versions.find(:all, :limit => 10, :joins => :article) %>

       <%= link_to(version.article.title,
                  { :controller => 'article_version',
                    :action => 'list',
                    :page_id => version.article.id,
                    :ol => 'u_ver_a_article' }) %>

     <%= version.version %>
     <%= version.created_on.strftime("%m/%d/%Y %I:%M %p") %>
     <%= link_to('view',
                     { :controller => 'article_version',
                       :action => 'show',
                       :page_version_id => version.id,
                       :ol => 'u_ver_a_view'}) %>

 <% end %>

 Screen Name:  <%= @user.display_name %>

Location:  <%= @user.location %>

Website:  <%= @user.website %>

About:  <%= @user.about %>

            <% if @user==current_user %><%= link_to "Update your profile.", { :action => "update_profile", :user_id => @user.id } %><% end %>

Recent Notes

        Note

        Page

        Date

			<% @user.notes.find(:all, :limit => 10).each do |note| %>

					<%= link_to(truncate(note.title, 40),
								{ :controller => 'display',
								  :action => 'display_page',
								  :page_id => note.page_id,
								  :anchor => "comment_#{note.id}" }) %>
					"<%= note.page.title  %>"
   					<%= note.created_at.strftime("%m/%d/%Y %I:%M %p")%>

			<% end%>

Recent Page Edits

        Work

        Page

        Version

        Date

        Action

 <% for version in @user.page_versions.find(:all, :limit => 10) %>

     <%= version.page.work.title %>

       <%= link_to(version.page.title,
                  { :controller => 'page_version',
                    :action => 'list',
                    :page_id => version.page.id,
                    :ol => 'u_ver_p_page' }) %>

     <%= version.page_version %>
     <%= version.created_on.strftime("%m/%d/%Y %I:%M %p") %>
     <%= link_to('view',
                     { :controller => 'page_version',
                       :action => 'show',
                       :page_version_id => version.id,
                       :ol => 'u_ver_p_view'}) %>

 <% end %>

Recent Article Edits

        Article

        Version

        Date

        Action

 <% for version in @user.article_versions.find(:all, :limit => 10) %>

       <%= link_to(version.article.title,
                  { :controller => 'article_version',
                    :action => 'list',
                    :page_id => version.article.id,
                    :ol => 'u_ver_a_article' }) %>

     <%= version.version %>
     <%= version.created_on.strftime("%m/%d/%Y %I:%M %p") %>
     <%= link_to('view',
                     { :controller => 'article_version',
                       :action => 'show',
                       :page_version_id => version.id,
                       :ol => 'u_ver_a_view'}) %>

 <% end %>


nothing consequential

nothing consequential

[<%= link_to_remote '-',
          :update => 'census',
          :url => {:controller => 'main', :action => 'hide_census_summary'} %>]
<%= @n_bats_arrived_this_month %> bats added this month, <%= @n_bats_left_this_month %> bats lost this month.

<% for year in @years %>

<div id ='year<%= year %>'>
<%= render :partial => 'census_year_data', :locals => {:census_year_data => nil, :year => year, :display => 'no'} %>

<% end %>