Ammend bio in help page

Ammend bio in help page

<% @title = "Quiénes somos" %>

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

¡Bienvenido a tuderechoasaber.es!

Somos la primera web en España que te facilita solicitar información a cualquier institución pública española. Pide lo que quieras. Nosotros nos encargamos de hacérsela llegar al responsable y te avisamos cuando responda. Todo el proceso es transparente y público para que tú y el resto del mundo podáis seguirlo.

España es el único país de Europa con más de un millón de habitantes que no cuenta con una ley de acceso a la información o ley de transparencia. Conseguir información de nuestras instituciones públicas es difícil, pero no imposible. Esta página ha sido diseñada por las organizaciones de la sociedad civil para facilitar ese acceso y promocionar este derecho. Así podremos exigir una rendición de cuentas completa a nuestros gobernantes.

Además, también facilitamos el trabajo de los funcionarios públicos. Así no tienen que responder varias veces a solicitudes sobre el mismo tema: una vez que se responde una pregunta, queda publicada directamente en la página web.

tuderechoasaber.es se basa en la exitosa página británica de mySociety WhatDoTheyKnow.com. Otras aplicaciones iguales o similares a tuderechoasaber.es ya están en marcha en otros países, como Brasil, Alemania, Chile o Kosovo, y a nivel de la Unión Europea con AsktheEU.

¿Cómo funciona?

Lo primero que necesitas es una idea. Lo demás es muy sencillo. Decide a qué institución -nacional, autonómica o local- quieres pedir la información, datos o documentos. Después, rellena el formulario. A continuación, nosotros enviamos un correo electrónico al organismo correspondiente, y te mantenemos al corriente de cuándo llega la respuesta.

España no cuenta con una ley de acceso a la información, con lo cual las instituciones tendrían tres meses para contestarte, según la regulación administrativa vigente (Ley 30/1992 de Régimen Jurídico de las Administraciones Públicas y del Procedimiento Administrativo Común).

El proceso es más rápido si lo que pides es información que tiene que ver con el medio ambiente ya que en España sí contamos con una ley de acceso a información medioambiental. Las instituciones públicas deben contestarte en un mes.

En el momento en el que obtenemos una respuesta, te la enviamos y automáticamente la publicamos en la web. Debes indicar si estás satisfecho o no, si necesitas más información o si quieres presentar un recurso. No te preocupes. El sistema te avisará si pasa el plazo y no recibes respuesta.

Todas las comunicaciones quedarán publicadas en tuderechoasaber.es para que cualquier persona con la misma pregunta pueda consultarla, sin tener que pasar por el mismo trámite.

¿Quién puede utilizar tuderechoasaber.es?

Cualquier ciudadano puede enviar solicitudes de acceso a la información a través de esta página. Sólo tienes que tener en cuenta que en España, de momento, el derecho de acceso a la información se limita a ciertas materias, como la información medioambiental o la contratación pública.

La legislación española es muy restrictiva y mucha información sólo resulta accesible para aquéllos que demuestren un “interés legítimo” (con la arbitrariedad que este criterio conlleva). Sin embargo, con tuderechoasaber.es queremos acabar con esta opacidad y equiparar nuestro acceso a la información pública con los estándares de transparencia de la mayoría de países de la Unión Europea.

Si eres una persona jurídica, una empresa o una ONG, también puedes utilizar esta página. De nuevo, aunque la ley de momento no nos ampare, debemos exigir información a nuestras instituciones. El derecho de acceso a la información pública puede ser una herramienta vital para conseguir tus objetivos.

Esta página puede ser especialmente interesante si trabajas en una ONG, si eres periodista, formas parte de un colectivo de ciudadanos, eres estudiante o profesor, abogado o empresario…. O si tan sólo tienes curiosidad por saber más sobre los poderes públicos en España. No esperes más: ¡pregunta ya!

Las organizaciones detrás de tuderechoasaber.es

tuderechoasaber.es es una web creada por Access Info Europe y Civio, con el apoyo económico de más de 150 ciudadanos. <%= link_to "Tú también puedes apoyarnos.", help_help_out_path %>

Access Info Europe

Access Info Europe es una organización de derechos humanos dedicada a la promoción y protección del derecho de acceso a la información en Europa, entendida como herramienta para la defensa de nuestras libertades civiles y los derechos humanos, para facilitar la participación pública en la toma de decisiones, y para exigir que el gobierno rinda cuentas.

La misión de Access Info es conseguir consagrar el derecho de acceso a la información en las leyes de todos los países del mundo, y que este derecho sea implementado y respetado en la práctica.

En España, Access Info Europe lleva desde 2006 luchando por la aprobación de una ley de acceso a la información pública, junto con la Coalición Pro Acceso, de la que es miembro fundador.

Civio

La Fundación Ciudadana Civio es una organización sin ánimo de lucro que busca fomentar un concepto de ciudadanía activa e involucrada, incidiendo en la transparencia informativa y la apertura de datos, mediante el desarrollo de aplicaciones tecnológicas y la generación de contenidos periodísticos de calidad.

Organizaciones con fines similares a los de Civio en otros países incluyen mySociety en el Reino Unido, la Fundación Ciudadano Inteligente en Chile, OpenNorth en Canadá o la Sunlight Foundation en EEUU.

El equipo

David Cabo (@dcabo)

David Cabo es patrono fundador de Civio, y creador de dondevanmisimpuestos.es para la visualización de los Presupuestos Generales del Estado, en colaboración con la Open Knowledge Foundation (OKFN). David promovió la iniciativa de transparencia #adoptaundiputado, para facilitar el acceso a las declaraciones de bienes de los parlamentarios españoles, y ha colaborado con periodistas en la extracción y análisis de datos públicos. Junto a mySociety y AccessInfo Europe, David participó en el lanzamiento del portal europeo de acceso a la información AsktheEU.org. Es también miembro de Pro Bono Publico, y uno de los organizadores del Desafío Abredatos 2011.

David es el desarrollador de tuderechoasaber.es y la persona a la que podéis contactar para cualquier duda técnica sobre esta web.

Victoria Anderica (@vicky_anderica)

Desde que se unió a Access Info Europe en enero de 2010, Victoria Anderica ha trabajado en la promoción y defensa del derecho de acceso a la información analizando las leyes de acceso a la información de todo el mundo, RTI Global Rating, y coordinando numerosos monitoreos nacionales e internacionales para medir los niveles de transparencia y la implementación de las leyes de acceso a la información en el mundo. Victoria coordina la campaña en España por una ley de acceso a la información.

En tuderechoasaber.es, Victoria es la encargada de analizar la correcta aplicación de las normas que regulan el acceso a la información en España y de resolver cualquier duda a este respecto a los usuarios.

Mar Cabra (@cabralens)

Mar es la responsable de contenidos de tuderechoasaber.es Ella y su equipo de la Fundación Ciudadana Civio se encargan de hacer seguimiento a las peticiones de información y resaltarlas en nuestro blog. Mar – periodista de profesión - cree firmemente en que toda la información, datos y documentos producidos con nuestros impuestos deben de ser públicos. La puedes contactar en mar@civio.es

Voluntarios

Para poner en marcha esta web hemos contado con <%= link_to "el apoyo de más de una decena de voluntarios", help_credits_path %> que nos han ayudado a traducir textos, buscar información de las administraciones, organizar eventos, contactar a la prensa... ¡Muchas gracias!

Patrocinadores de tuderechoasaber.es

No habríamos podido hacer esta web sin el apoyo de <%= link_to_unless_current "más de 150 ciudadanos", help_credits_path %> que creyeron en este proyecto y nos dieron dinero a través de la plataforma de crowdfunding Goteo. Si te gusta nuestra iniciativa, <%= link_to "tú también puedes hacer tu donación", help_help_out_path %>.

    <%= render :partial => 'help/supporters' %>

Instituciones colaboradoras

    <%= render :partial => 'help/public_partners' %>

Estas son las condiciones de colaboración.

<% @title = "Quiénes somos" %>

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

¡Bienvenido a tuderechoasaber.es!

Somos la primera web en España que te facilita solicitar información a cualquier institución pública española. Pide lo que quieras. Nosotros nos encargamos de hacérsela llegar al responsable y te avisamos cuando responda. Todo el proceso es transparente y público para que tú y el resto del mundo podáis seguirlo.

España es el único país de Europa con más de un millón de habitantes que no cuenta con una ley de acceso a la información o ley de transparencia. Conseguir información de nuestras instituciones públicas es difícil, pero no imposible. Esta página ha sido diseñada por las organizaciones de la sociedad civil para facilitar ese acceso y promocionar este derecho. Así podremos exigir una rendición de cuentas completa a nuestros gobernantes.

Además, también facilitamos el trabajo de los funcionarios públicos. Así no tienen que responder varias veces a solicitudes sobre el mismo tema: una vez que se responde una pregunta, queda publicada directamente en la página web.

tuderechoasaber.es se basa en la exitosa página británica de mySociety WhatDoTheyKnow.com. Otras aplicaciones iguales o similares a tuderechoasaber.es ya están en marcha en otros países, como Brasil, Alemania, Chile o Kosovo, y a nivel de la Unión Europea con AsktheEU.

¿Cómo funciona?

Lo primero que necesitas es una idea. Lo demás es muy sencillo. Decide a qué institución -nacional, autonómica o local- quieres pedir la información, datos o documentos. Después, rellena el formulario. A continuación, nosotros enviamos un correo electrónico al organismo correspondiente, y te mantenemos al corriente de cuándo llega la respuesta.

España no cuenta con una ley de acceso a la información, con lo cual las instituciones tendrían tres meses para contestarte, según la regulación administrativa vigente (Ley 30/1992 de Régimen Jurídico de las Administraciones Públicas y del Procedimiento Administrativo Común).

El proceso es más rápido si lo que pides es información que tiene que ver con el medio ambiente ya que en España sí contamos con una ley de acceso a información medioambiental. Las instituciones públicas deben contestarte en un mes.

En el momento en el que obtenemos una respuesta, te la enviamos y automáticamente la publicamos en la web. Debes indicar si estás satisfecho o no, si necesitas más información o si quieres presentar un recurso. No te preocupes. El sistema te avisará si pasa el plazo y no recibes respuesta.

Todas las comunicaciones quedarán publicadas en tuderechoasaber.es para que cualquier persona con la misma pregunta pueda consultarla, sin tener que pasar por el mismo trámite.

¿Quién puede utilizar tuderechoasaber.es?

Cualquier ciudadano puede enviar solicitudes de acceso a la información a través de esta página. Sólo tienes que tener en cuenta que en España, de momento, el derecho de acceso a la información se limita a ciertas materias, como la información medioambiental o la contratación pública.

La legislación española es muy restrictiva y mucha información sólo resulta accesible para aquéllos que demuestren un “interés legítimo” (con la arbitrariedad que este criterio conlleva). Sin embargo, con tuderechoasaber.es queremos acabar con esta opacidad y equiparar nuestro acceso a la información pública con los estándares de transparencia de la mayoría de países de la Unión Europea.

Si eres una persona jurídica, una empresa o una ONG, también puedes utilizar esta página. De nuevo, aunque la ley de momento no nos ampare, debemos exigir información a nuestras instituciones. El derecho de acceso a la información pública puede ser una herramienta vital para conseguir tus objetivos.

Esta página puede ser especialmente interesante si trabajas en una ONG, si eres periodista, formas parte de un colectivo de ciudadanos, eres estudiante o profesor, abogado o empresario…. O si tan sólo tienes curiosidad por saber más sobre los poderes públicos en España. No esperes más: ¡pregunta ya!

Las organizaciones detrás de tuderechoasaber.es

tuderechoasaber.es es una web creada por Access Info Europe y Civio, con el apoyo económico de más de 150 ciudadanos. <%= link_to "Tú también puedes apoyarnos.", help_help_out_path %>

Access Info Europe

Access Info Europe es una organización de derechos humanos dedicada a la promoción y protección del derecho de acceso a la información en Europa, entendida como herramienta para la defensa de nuestras libertades civiles y los derechos humanos, para facilitar la participación pública en la toma de decisiones, y para exigir que el gobierno rinda cuentas.

La misión de Access Info es conseguir consagrar el derecho de acceso a la información en las leyes de todos los países del mundo, y que este derecho sea implementado y respetado en la práctica.

En España, Access Info Europe lleva desde 2006 luchando por la aprobación de una ley de acceso a la información pública, junto con la Coalición Pro Acceso, de la que es miembro fundador.

Civio

La Fundación Ciudadana Civio es una organización sin ánimo de lucro que busca fomentar un concepto de ciudadanía activa e involucrada, incidiendo en la transparencia informativa y la apertura de datos, mediante el desarrollo de aplicaciones tecnológicas y la generación de contenidos periodísticos de calidad.

Organizaciones con fines similares a los de Civio en otros países incluyen mySociety en el Reino Unido, la Fundación Ciudadano Inteligente en Chile, OpenNorth en Canadá o la Sunlight Foundation en EEUU.

El equipo

David Cabo (@dcabo)

David Cabo es patrono fundador de Civio y vice-presidente de Pro Bono Publico. David es creador de dondevanmisimpuestos.es para la visualización de los Presupuestos Generales del Estado, en colaboración con la Open Knowledge Foundation (OKFN). David promovió la iniciativa de transparencia #adoptaundiputado, para facilitar el acceso a las declaraciones de bienes de los parlamentarios españoles, y ha colaborado con periodistas en la extracción y análisis de datos públicos. Junto a mySociety y AccessInfo Europe, David participó en el lanzamiento del portal europeo de acceso a la información AsktheEU.org.

David es el desarrollador de tuderechoasaber.es y la persona a la que podéis contactar para cualquier duda técnica sobre esta web.

Victoria Anderica (@vicky_anderica)

Desde que se unió a Access Info Europe en enero de 2010, Victoria Anderica ha trabajado en la promoción y defensa del derecho de acceso a la información analizando las leyes de acceso a la información de todo el mundo, RTI Global Rating, y coordinando numerosos monitoreos nacionales e internacionales para medir los niveles de transparencia y la implementación de las leyes de acceso a la información en el mundo. Victoria coordina la campaña en España por una ley de acceso a la información.

En tuderechoasaber.es, Victoria es la encargada de analizar la correcta aplicación de las normas que regulan el acceso a la información en España y de resolver cualquier duda a este respecto a los usuarios.

Mar Cabra (@cabralens)

Mar es la responsable de contenidos de tuderechoasaber.es Ella y su equipo de la Fundación Ciudadana Civio se encargan de hacer seguimiento a las peticiones de información y resaltarlas en nuestro blog. Mar – periodista de profesión - cree firmemente en que toda la información, datos y documentos producidos con nuestros impuestos deben de ser públicos. La puedes contactar en mar@civio.es

Voluntarios

Para poner en marcha esta web hemos contado con <%= link_to "el apoyo de más de una decena de voluntarios", help_credits_path %> que nos han ayudado a traducir textos, buscar información de las administraciones, organizar eventos, contactar a la prensa... ¡Muchas gracias!

Patrocinadores de tuderechoasaber.es

No habríamos podido hacer esta web sin el apoyo de <%= link_to_unless_current "más de 150 ciudadanos", help_credits_path %> que creyeron en este proyecto y nos dieron dinero a través de la plataforma de crowdfunding Goteo. Si te gusta nuestra iniciativa, <%= link_to "tú también puedes hacer tu donación", help_help_out_path %>.

    <%= render :partial => 'help/supporters' %>

Instituciones colaboradoras

    <%= render :partial => 'help/public_partners' %>

Estas son las condiciones de colaboración.


added bin/radio.rhtml

added bin/radio.rhtml

<% require 'rubygems' %>
<% require 'cgi' %>
<% require 'drb' %>

<% radio = DRbObject.new(nil, "druby://slackernet.ath.cx:7176") %>
<% radio.rig_open %>

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

		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link href="default.css" rel="stylesheet" type="text/css" />
		<title>Online Ham Radio</title>

Yaesu FT847

<%      cgi = CGI.new()
        if cgi.params['mode'] != "none"
		radio.rig_set_mode(cgi.params['mode'].to_s, "normal")
	end
	if cgi.params['freq'][0] != nil
		if cgi.params['freq'][0].length > 0
			radio.rig_set_freq(cgi.params['freq'][0].to_i)
		end
	end
%>

Current Settings:

<% stats = radio.stats %>
Mode:  <%= stats["mode"] %>

<% puts "Frequency: " + stats["freq"] %>

<form method="POST" action="radio.rhtml">
	Mode Select:
	<select name="mode">
		<option value="none">No change</option>
		<option value=AM>AM</option>
		<option value=CW>CW</option>
		<option value=FM>FM</option>
		<option value=LSB>LSB</option>
		<option value=USB>USB</option>
	</select>

	Set Frequency (Hz):
	<input type="text" name="freq">

	<input type="submit" value="Submit">
</form>

Listen

<% radio.rig_close %>

<% require 'rubygems' %>
<% require 'cgi' %>
<% require 'drb' %>

<% radio = DRbObject.new(nil, "druby://slackernet.ath.cx:7176") %>
<% radio.rig_open %>

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

		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link href="default.css" rel="stylesheet" type="text/css" />
		<title>Online Ham Radio</title>

Yaesu FT847

<%      cgi = CGI.new()
        if cgi.params['mode'] != "none"
		radio.rig_set_mode(cgi.params['mode'].to_s, "normal")
	end
	if cgi.params['freq'][0].chomp.length > 0
		radio.rig_set_freq(cgi.params['freq'][0].to_i)
	end
%>

Current Settings:

<% stats = radio.stats %>
Mode:  <%= stats["mode"] %>

<% puts "Frequency: " + stats["freq"] %>

<form method="POST" action="radio.rhtml">
	Mode Select:
	<select name="mode">
		<option value="none">No change</option>
		<option value=AM>AM</option>
		<option value=CW>CW</option>
		<option value=FM>FM</option>
		<option value=LSB>LSB</option>
		<option value=USB>USB</option>
	</select>

	Set Frequency (Hz):
	<input type="text" name="freq">

	<input type="submit" value="Submit">
</form>

Listen

<% radio.rig_close %>


Entity-escape the state in the feedback admin page

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

<tr class="<%= state_class(item) %>">
  <input class= "feedback_check" type="checkbox" name="feedback_check[<%= item.id %>]"/>
  <%=h item.state %>
  <%=h item.class %>
  <%= link_to_article_edit item.article %>

    <%=h (item.author || '(unknown)').slice(0,40) %>

    <% if item.url -%>
    <%= link_to h(truncate(item.url.to_s)), item.url %>

    <% end -%>
        <%=h item.email.to_s.slice(0,40) %>

  <%=h truncate(item.body,80)%>
  <%=h item.ip %>
  <%=h distance_of_time_in_words_to_now(item.created_at) %> ago
  <%= link_to image_tag('delete'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :post => true %>

<tr class="<%= state_class(item) %>">
  <input class= "feedback_check" type="checkbox" name="feedback_check[<%= item.id %>]"/>
  <%= item.state %>
  <%=h item.class %>
  <%= link_to_article_edit item.article %>

    <%=h (item.author || '(unknown)').slice(0,40) %>

    <% if item.url -%>
    <%= link_to h(truncate(item.url.to_s)), item.url %>

    <% end -%>
        <%=h item.email.to_s.slice(0,40) %>

  <%=h truncate(item.body,80)%>
  <%=h item.ip %>
  <%=h distance_of_time_in_words_to_now(item.created_at) %> ago
  <%= link_to image_tag('delete'), {:action => 'delete', :id => item.id, :search => params[:search], :page => params[:page] },  :confirm => "Are you sure?", :post => true %>


Add "answer" link

Add "answer" link

Listing questionnaires

    Title

<% for questionnaire in @questionnaires %>

    <%=h questionnaire.title %>
    <%= link_to "Answer", :controller => "answer", :action => "index", :id => questionnaire.id %>
    <%= link_to 'Edit', edit_questionnaire_path(questionnaire) %>
    <%= link_to 'Delete', questionnaire_path(questionnaire), :confirm => 'Are you sure?', :method => :delete %>
    <%= link_to 'Export', questionnaire_path(questionnaire) + ".xml" %>

<% end %>

<%= link_to 'New questionnaire', new_questionnaire_path %>

Listing questionnaires

    Title

<% for questionnaire in @questionnaires %>

    <%=h questionnaire.title %>
    <%= link_to 'Edit', edit_questionnaire_path(questionnaire) %>
    <%= link_to 'Delete', questionnaire_path(questionnaire), :confirm => 'Are you sure?', :method => :delete %>
    <%= link_to 'Export', questionnaire_path(questionnaire) + ".xml" %>

<% end %>

<%= link_to 'New questionnaire', new_questionnaire_path %>


Ask for help on fixing DPA troubles.

Ask for help on fixing DPA troubles.

<% @title = "About" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

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

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

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

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

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

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

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

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

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

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

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

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

Why will my name appear publically on the site? #

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

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

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

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

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

Why are you publishing responses to FOI requests? #

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

Are the people making requests real people? #

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

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

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

Aren't you making lots of vexatious requests? #

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

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

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

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

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

Do you publish email addresses or mobile phone numbers? #

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

Can you take down private information about me? #

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

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.

<% @title = "About" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.
If you'd like to help add a whole category of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

Not using this site. Requests made using WhatDoTheyKnow are public, made under the
Freedom of Information Act, and cannot help you find information about a
private individual. If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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

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

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

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

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

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

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

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

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

Why will my name appear publically on the site? #

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

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the 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.


Forgot to add URL for Affero GPL 3

Forgot to add URL for Affero GPL 3

<% content_for('optionbar') do %>
  <%= option "help" %>
  <%= option "home" %>
<% end %>

Contact Details

The Carbon Diet is developed by James Smith. To contact me directly, please email <%= mail_to 'info@carbondiet.org', nil, :encode => 'javascript' %>.

Acknowledgments

The Carbon Diet runs Ruby on Rails.

Most of the icons used on this site are from the awesome Silk icon
set from famfamfam. Flag images are from the
Flag icon set on the same site. Most of the larger images are from the Tango project.

Flash-based charting functionality is done with XML/SWF Charts and amCharts.

The development and design of this website has been heavily influenced by LibraryThing.
If you're into your books, I really suggest that you check them out!

License & Copyright

The Carbon Diet is open source software, licensed under the terms of the GNU Affero General Public License v3.
The latest source code is always available from http://github.com/Floppy/carbon-diet.

All site content (other than that acquired from other sources as mentioned above) is Copyright © 2007-9 James Smith.


More generator fixes.

More generator fixes.

<%
  file_name = File.join(RAILS_ROOT, "db", "schema.rb")
  if File.exist?(file_name)
    content = File.read(file_name)
    foreign_keys = content.split("add_foreign_key")
    foreign_keys.each do |foreign_key|
      elements = foreign_key.split(" ")
      association = elements[0].gsub(/[,"\[\]]/, '')
      association_column = elements[1].gsub(/[,"\"\[\]]/, '')
      association_reverse = elements[2].gsub(/[,"\"\[\]]/, '')
      association_reverse_column = elements[3].gsub(/[,"\"\[\]]/, '')
      # add_foreign_key "assets", ["site_id"], "sites", ["id"], :name => "assets_ibfk_1"
      if association == @model_instance.class.table_name
        %>	belongs_to :<%= association_column[0..-4] %>, :class_name => "<%= association_reverse.singularize.camelize %>", :foreign_key => "<%= association_column %>"
<%
      end
      if association_reverse == @model_instance.class.table_name
      	if association.include?(association_reverse)
					%>	has_and_belongs_to_many :<%= association.gsub(association_reverse, '').gsub(/^\_/, "").gsub(/\_$/, "") %>
<%
				else
				%>	has_many :<%= association %>
<%
				end
      end
    end
  end
%>
<%
max_size = @model_instance.class.column_names.collect{|name| name.size}.max + 1
@model_instance.class.columns.each do |col|
  next if [:id, :created_at, :updated_at, :lock_version].include?(col.name.to_sym)
	next if col.name.include?('_id') and col.name.last(3) == '_id'
  attrs = []
  attrs << "default(#{quote(col.default)})" if col.default
  attrs << "not null" unless col.null
  attrs << "primary key" if col.name == @model_instance.class.primary_key

  col_type = col.type.to_s
  if col_type == "decimal"
    col_type << "(#{col.precision}, #{col.scale})"
  else
    col_type << "(#{col.limit})" if col.limit
  end %>	attribute :<%= col.name %>, :is => :required  <%#= sprintf("# %s", col_type, attrs.join(", ")) %>
<%
end
%><%
  if @model_instance.class.content_columns.find {|c| [:name, :label, :title].include?(c.name.to_sym)}.nil? -%>
	def to_label
    "#{}" # :name, :label, :title columns not found. Put the Model's label column(s) here for example: first_name + " " + last_name
  end
<% end -%>

  # ===================
  # = Authorize BEGIN =
  # ===================

  def authorized_for_create?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_destroy?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_read?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_update?
    current_user and current_user.permit?([:root, :super])
  end

  # =================
  # = Authorize END =
  # =================

<%
  file_name = File.join(RAILS_ROOT, "db", "schema.rb")
  if File.exist?(file_name)
    content = File.read(file_name)
    foreign_keys = content.split("add_foreign_key")
    foreign_keys.each do |foreign_key|
      elements = foreign_key.split(" ")
      association = elements[0].gsub(/[,"\[\]]/, '')
      association_column = elements[1].gsub(/[,"\"\[\]]/, '')
      association_reverse = elements[2].gsub(/[,"\"\[\]]/, '')
      association_reverse_column = elements[3].gsub(/[,"\"\[\]]/, '')
      # add_foreign_key "assets", ["site_id"], "sites", ["id"], :name => "assets_ibfk_1"
      if association == @model_instance.class.table_name
        %>	belongs_to :<%= association_column[0..-4] %>, :class_name => "<%= association_reverse.singularize.camelize %>", :foreign_key => "<%= association_column %>"
<%
      end
      if association_reverse == @model_instance.class.table_name
      	if association.include?(association_reverse)
				%>	has_and_belongs_to_many :<%= association.gsub(association_reverse, '').gsub(/^\_/, "").gsub(/\_/, "") %>
<%
				else
				%>	has_many :<%= association %>
<%
				end
      end
    end
  end
%>
<%
max_size = @model_instance.class.column_names.collect{|name| name.size}.max + 1
@model_instance.class.columns.each do |col|
  next if [:id, :created_at, :updated_at, :lock_version].include?(col.name.to_sym)
	next if col.name.include?('_id') and col.name.last(3) == '_id'
  attrs = []
  attrs << "default(#{quote(col.default)})" if col.default
  attrs << "not null" unless col.null
  attrs << "primary key" if col.name == @model_instance.class.primary_key

  col_type = col.type.to_s
  if col_type == "decimal"
    col_type << "(#{col.precision}, #{col.scale})"
  else
    col_type << "(#{col.limit})" if col.limit
  end %>	attribute :<%= col.name %>, :is => :required  <%#= sprintf("# %s", col_type, attrs.join(", ")) %>
<%
end
%><%
  if @model_instance.class.content_columns.find {|c| [:name, :label, :title].include?(c.name.to_sym)}.nil? -%>
	def to_label
    "#{}" # :name, :label, :title columns not found. Put the Model's label column(s) here for example: first_name + " " + last_name
  end
<% end -%>

  # ===================
  # = Authorize BEGIN =
  # ===================

  def authorized_for_create?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_destroy?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_read?
    current_user and current_user.permit?([:root, :super])
  end

  def authorized_for_update?
    current_user and current_user.permit?([:root, :super])
  end

  # =================
  # = Authorize END =
  # =================


futher tweaking of the text about sharing permissions

<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

<%# @resource_type -%>
<%# @favourite_groups -%>
<%# @all_projects -%>

<%# @policy_type -%>
<%# @sharing_mode -%>
<%# @access_mode -%>
<%# @use_custom_sharing -%>
<%# @use_whitelist -%>
<%# @use_blacklist -%>

    <%= help_icon("Here you can specify who can view, download and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify to whom the <%= @resource_type -%> is visible, accessible and editable.
        <%= link_to_function "More info " + expand_image, visual_effect(:toggle_blind, "more_sharing_info", :duration => 0.3) -%>

          Here you may specify the People, Projects or Groups that may see, access, or edit the details about your <%= @resource_type -%>.

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share with all other users, including those that are not a member of a Sysmo project.

Share with all other users that are a member of a Sysmo project.

Define more fine-grained sharing, by selecting Custom sharing permissions.
 By using custom sharing permissions you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
        <input type="hidden" name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input type="hidden" name="sharing[include_custom_sharing_<%= Policy::PRIVATE -%>]" value="0">

        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                              value="<%= Policy::PRIVATE -%>" type="radio" onclick="javascript:setSharingElementVisibility(<%= Policy::PRIVATE -%>);" />
        - Keep this <%= @resource_type -%> private.

Or share it with..

      <label for="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_REGISTERED_USERS -%> id="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_REGISTERED_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_REGISTERED_USERS -%>);" />
        - All users, including those that are not members of SysMO projects, for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_SYSMO_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_SYSMO_USERS -%>);" />
        - All registered users that are members of a SysMO project for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY -%> id="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" name="sharing[sharing_scope]"
               value="<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>);" />
        - Use custom sharing permissions only

    <div id="specific_sharing" style="display: <%= (@use_custom_sharing || @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY) ? "block" : "none" -%>; margin-top: 2em;">

        Custom sharing permissions

          So far you have selected to share this <%= @resource_type -%> with:

          Loading...

          Build up the list of people and groups to share with.
          Select from the options below and click "Add" to apply
          your choices and add collaborators to your current selection:

            <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
            <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
            Favourite Groups

              <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
              <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

              <%= select_tag "favourite_group_select", f_group_select_options, :onchange => "javascript: replaceFavouriteGroupRedboxActionURL(); return(false);", :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

              <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

              <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit() -%>

              <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new() -%>

            <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
            Projects and Institutions

              <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

              Step 1
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 2
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 3

                <input type="hidden" id="proj_select_step_index" value="1">

                  <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                  Step 1: Select a project
                  <%= select("proj_project", "select",
                    Project.find(:all).collect {|p| [ p.name, p.id ] },
                    {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 2: Select scope of the project
                  <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 3: Choose access rights, review and submit

                  <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                    <%= policy_selection_options [Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING] -%>
                  </select>

                    <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                    <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link() -%>

            <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
            Individual People

                Please type names of people to share this <%= @resource_type -%> with into the box below - suggestions will be displayed as you type.
                Select access rights from drop-down menu; these will be applied to all chosen people.
                Clicking "Add" will add selected people to the list.

                      ^_^<input type="text" id="ip_hidden_input" tabindex="-1" >

                        <input type="text" size="1" tabindex="" id="ip_autocomplete_input" />

Type the name of a friend, friend list, or email address

                    <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                      <%= policy_selection_options -%>
                    </select>

                    <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>

    <%= "
" unless @enable_black_white_listing %>

Also include people in my..

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_whitelist]" id="cb_use_whitelist" <%= "checked='checked'" if @use_whitelist -%> />
          - "white list", who always get full access

        <% white_lst = current_user.get_whitelist -%>
        <%= hidden_field_tag "#{FavouriteGroup::WHITELIST_NAME}_group_id", (white_lst ? white_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_edit_span" style="display: <%= white_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% unless white_lst -%>
            <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::WHITELIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_blacklist]" id="cb_use_blacklist" <%= "checked='checked'" if @use_blacklist -%> />
          - "black list", who have no access at all

        <% black_lst = current_user.get_blacklist -%>
        <%= hidden_field_tag "#{FavouriteGroup::BLACKLIST_NAME}_group_id", (black_lst ? black_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_edit_span" style="display: <%= black_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% unless black_lst -%>
            <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::BLACKLIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

  <%# this DIV is to hold the 'redbox' links generated by a method in application_helper, -%>
  <%# these will be "clicked" by javascript, because hidden divs that are present in the -%>
  <%# generated code causes IE to break layout by inserting extra line break otherwise -%>
        <div id="<%= FavouriteGroup::WHITELIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::WHITELIST_NAME) -%>

        <div id="<%= FavouriteGroup::BLACKLIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::BLACKLIST_NAME) -%>

    <%= "
" unless @enable_black_white_listing %>

<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

<%# @resource_type -%>
<%# @favourite_groups -%>
<%# @all_projects -%>

<%# @policy_type -%>
<%# @sharing_mode -%>
<%# @access_mode -%>
<%# @use_custom_sharing -%>
<%# @use_whitelist -%>
<%# @use_blacklist -%>

    <%= help_icon("Here you can specify who can view, download and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify to whom the <%= @resource_type -%> is visible, accessible and editable.
        <%= link_to_function "More info " + expand_image, visual_effect(:toggle_blind, "more_sharing_info", :duration => 0.3) -%>

          Here you may specify the People, Projects or Groups that may View and Edit the details about your <%= @resource_type -%>.

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share with all other users, including those that are not a member of a Sysmo project.

Share with all other users that are a member of a Sysmo project.

Define more fine-grained sharing, by selecting Custom sharing permissions.
 By using custom sharing permissions you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
        <input type="hidden" name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input type="hidden" name="sharing[include_custom_sharing_<%= Policy::PRIVATE -%>]" value="0">

        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                              value="<%= Policy::PRIVATE -%>" type="radio" onclick="javascript:setSharingElementVisibility(<%= Policy::PRIVATE -%>);" />
        - Keep this <%= @resource_type -%> private.

Or share it with..

      <label for="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_REGISTERED_USERS -%> id="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_REGISTERED_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_REGISTERED_USERS -%>);" />
        - All users, including those that are not members of SysMO projects, for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_SYSMO_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_SYSMO_USERS -%>);" />
        - All registered users that are members of a SysMO project for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY -%> id="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" name="sharing[sharing_scope]"
               value="<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>);" />
        - Use custom sharing permissions only

    <div id="specific_sharing" style="display: <%= (@use_custom_sharing || @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY) ? "block" : "none" -%>; margin-top: 2em;">

        Custom sharing permissions

          So far you have selected to share this <%= @resource_type -%> with:

          Loading...

          Build up the list of people and groups to share with.
          Select from the options below and click "Add" to apply
          your choices and add collaborators to your current selection:

            <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
            <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
            Favourite Groups

              <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
              <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

              <%= select_tag "favourite_group_select", f_group_select_options, :onchange => "javascript: replaceFavouriteGroupRedboxActionURL(); return(false);", :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

              <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

              <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit() -%>

              <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new() -%>

            <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
            Projects and Institutions

              <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

              Step 1
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 2
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 3

                <input type="hidden" id="proj_select_step_index" value="1">

                  <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                  Step 1: Select a project
                  <%= select("proj_project", "select",
                    Project.find(:all).collect {|p| [ p.name, p.id ] },
                    {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 2: Select scope of the project
                  <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 3: Choose access rights, review and submit

                  <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                    <%= policy_selection_options [Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING] -%>
                  </select>

                    <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                    <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link() -%>

            <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
            Individual People

                Please type names of people to share this <%= @resource_type -%> with into the box below - suggestions will be displayed as you type.
                Select access rights from drop-down menu; these will be applied to all chosen people.
                Clicking "Add" will add selected people to the list.

                      ^_^<input type="text" id="ip_hidden_input" tabindex="-1" >

                        <input type="text" size="1" tabindex="" id="ip_autocomplete_input" />

Type the name of a friend, friend list, or email address

                    <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                      <%= policy_selection_options -%>
                    </select>

                    <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>

    <%= "
" unless @enable_black_white_listing %>

Also include people in my..

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_whitelist]" id="cb_use_whitelist" <%= "checked='checked'" if @use_whitelist -%> />
          - "white list", who always get full access

        <% white_lst = current_user.get_whitelist -%>
        <%= hidden_field_tag "#{FavouriteGroup::WHITELIST_NAME}_group_id", (white_lst ? white_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_edit_span" style="display: <%= white_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% unless white_lst -%>
            <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::WHITELIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_blacklist]" id="cb_use_blacklist" <%= "checked='checked'" if @use_blacklist -%> />
          - "black list", who have no access at all

        <% black_lst = current_user.get_blacklist -%>
        <%= hidden_field_tag "#{FavouriteGroup::BLACKLIST_NAME}_group_id", (black_lst ? black_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_edit_span" style="display: <%= black_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% unless black_lst -%>
            <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::BLACKLIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

  <%# this DIV is to hold the 'redbox' links generated by a method in application_helper, -%>
  <%# these will be "clicked" by javascript, because hidden divs that are present in the -%>
  <%# generated code causes IE to break layout by inserting extra line break otherwise -%>
        <div id="<%= FavouriteGroup::WHITELIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::WHITELIST_NAME) -%>

        <div id="<%= FavouriteGroup::BLACKLIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::BLACKLIST_NAME) -%>

    <%= "
" unless @enable_black_white_listing %>


Add display name and email to signup page.  (closes #190)

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

<%= start_form_tag :action=> "signup" %>

Signup

  <%= error_messages_for 'user' %>

  Desired login:

  <%= text_field "user", "login", :size => 30 %>

  Choose password:

  <%= password_field "user", "password", :size => 30 %>

  Confirm password:

  <%= password_field "user", "password_confirmation", :size => 30 %>

  Display name:

  <%= text_field "user", "name", :size => 30 %>

  Email address:

  <%= text_field "user", "email", :size => 30 %>

<input type="submit" value="Signup »" class="primary" />

<%= end_form_tag %>

<%= start_form_tag :action=> "signup" %>

Signup

  <%= error_messages_for 'user' %>

  Desired login:

  <%= text_field "user", "login", :size => 30 %>

  Choose password:

  <%= password_field "user", "password", :size => 30 %>

  Confirm password:

  <%= password_field "user", "password_confirmation", :size => 30 %>

<input type="submit" value="Signup »" class="primary" />

<%= end_form_tag %>


Generate link in railsish way

Generate link in railsish way

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

        <% if @profile_photo_javascript %>

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

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - make and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

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

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

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

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

=end
%>

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

Close

Blimey. It looks like the Internets won – a message from WhatDoTheyKnow

Sorry to interrupt, but we thought you’d like to know that you won!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

Tomorrow, MPs were going to vote on changing the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

However, after a tremendous response from you, with over 7,000 members
    on our Facebook group, 4,000 messages sent to MPs, help from

    Stephen Fry, and a helpful
    4th Report of the House of Lords
    Merits of Statutory Instruments Committee,
    it appears that the vote has been cancelled –
    Guardian,
    Times,
    BBC.

As President Obama said in his inauguration speech: “And
    those of us who manage the public’s dollars will be held to account – to
    spend wisely, reform bad habits, and do our business in the light of day –

    because only then can we restore the vital trust between a people and their
    government.”

Read our victory blog post. :-)

Close

=end
%>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

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

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

        <% end %>

<%= link_to "Make request", frontpage_url %>

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

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

			<% end %>

<%= link_to "Read blog", blog_url %>

<%= link_to "Help", about_url %>

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

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

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Contact WhatDoTheyKnow
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>

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

        <% if @profile_photo_javascript %>

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

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - make and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

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

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

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

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

=end
%>

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

Close

Blimey. It looks like the Internets won – a message from WhatDoTheyKnow

Sorry to interrupt, but we thought you’d like to know that you won!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

Tomorrow, MPs were going to vote on changing the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

However, after a tremendous response from you, with over 7,000 members
    on our Facebook group, 4,000 messages sent to MPs, help from

    Stephen Fry, and a helpful
    4th Report of the House of Lords
    Merits of Statutory Instruments Committee,
    it appears that the vote has been cancelled –
    Guardian,
    Times,
    BBC.

As President Obama said in his inauguration speech: “And
    those of us who manage the public’s dollars will be held to account – to
    spend wisely, reform bad habits, and do our business in the light of day –

    because only then can we restore the vital trust between a people and their
    government.”

Read our victory blog post. :-)

Close

=end
%>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

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

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

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

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

			<% end %>

<%= link_to "Read blog", blog_url %>

<%= link_to "Help", about_url %>

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

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

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Contact WhatDoTheyKnow
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>


Adapting request preview page to new wireframes

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

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

<%= _('3. Now check your request') %>

<%= _('Check you haven\'t included any personal information.') %>

<%= _('Your name, request and any responses will appear in search engines
        (details).') % [help_privacy_path+"#public_request"] %>

    <% fields_for :outgoing_message do |o| %>

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

<%= _('Subject:') %> <%=h @info_request.email_subject_request %>

<%= @outgoing_message.get_body_for_html_display %>

                <%= o.hidden_field(:body) %>

    <% end %>

<%= _('Privacy note: If you want to request private information about
    yourself then click here.') % [help_requesting_path+"#data_protection"] %>

    <%= f.hidden_field(:title) %>
    <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
    <%= f.hidden_field(:tag_string) %>
    <%= hidden_field_tag(:submitted_new_request, 1) %>
    <%= hidden_field_tag(:preview, 0 ) %>
    <%= submit_tag _("Edit this request"), :name => 'reedit' %>
    <%= submit_tag _("Send request"), :name => 'submit' %>

    <% if !@info_request.tag_string.empty? %>

<%= _('Tags:') %> <%=h @info_request.tag_string %>

    <% end %>

<% end %>

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

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

<%= _('Now preview your request') %>

<%= _('Check you haven\'t included any personal information.') %>

<%= _('Your name, request and any responses will appear in search engines
        (details).') % [help_privacy_path+"#public_request"] %>

    <% fields_for :outgoing_message do |o| %>

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

<%= _('Subject:') %> <%=h @info_request.email_subject_request %>

<%= @outgoing_message.get_body_for_html_display %>

                <%= o.hidden_field(:body) %>

    <% end %>

<%= _('Privacy note: If you want to request private information about
    yourself then click here.') % [help_requesting_path+"#data_protection"] %>

    <%= f.hidden_field(:title) %>
    <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
    <%= f.hidden_field(:tag_string) %>
    <%= hidden_field_tag(:submitted_new_request, 1) %>
    <%= hidden_field_tag(:preview, 0 ) %>
    <%= submit_tag _("Re-edit this request"), :name => 'reedit' %>
    <%= submit_tag _("Send public ") + h(@info_request.law_used_full) + " request", :name => 'submit' %>

    <% if !@info_request.tag_string.empty? %>

<%= _('Tags:') %> <%=h @info_request.tag_string %>

    <% end %>

<% end %>


Fixed feed link to go through feedburner

<%= _("Subscribe now!")%>

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


some css fix

some css fix

body{
	background: #eeeeee;
	font-family: Liberation Sans, Arial;
}
#header #tagline {
 color: green;
}

h1 {
 color: blue ! important;
}
#header h1 a {
    background-image: url("../iz_images/navimg/alaveteli-logo.png");
	width: 212px;
	height: 87px;
	margin-left: 5px;
}
#header #tagline {
 	display: none;
}
#header{
	height: 87px;
	position: static;
	width:900px;
}
.entirebody{
	width: 904px;
	margin: 0 auto;
    background: url("../iz_images/navimg/entirebody.png") repeat-y left top;
}
#topnav {
	background: url("../iz_images/navimg/main-nav-bg.png") repeat-x left top;
	height: 32px;
	float: left;
	margin-left: 5px;
	width: 894px;
	position: static;
	z-index: 0;
}
#frontpage_search{
	background: none;
}
#topnav li a, #content a, #footer a{
	color: #1f1f1f;
}
#topnav li a:visited, #content a:visited, #footer a:visited{
	color: #585858;
}
#topnav li a:hover, #content a:hover, #footer a:hover{
	color: #900000;
}
#navigation_search {
	width:900px;;
}
.lang{
	float: right;
    width: 200px;
}
#wrapper{
	padding: 0px;
}
 .entirebody:after {
    clear:both;
    content:".";
    display:block;
    height:0;
    line-height:0;
    visibility:hidden;
}
#content{
padding:2em;
padding-right:50px;
}
#content h1, #frontpage_search h1, .controller_request h1{
color:#900000 !important;
}
div#blog_sidebar{
margin-right:23px;
}
.blog_post{
padding-right:25px;
}
#query{
	background: url("../iz_images/navimg/second-search.png") no-repeat left top;
	border:none;
	height:32px;
	width:404px;
	padding-left:5px;
	padding-right:5px;
	margin-bottom: 10px;
}

.controller_general h1{
color:#900000;
}
#topnav ul{
padding: 3px;
}
#logged_in_bar{
 width: 264px;
 color:#1F1F1F;
 padding-left: 0px;
 padding-right: 5px;
 margin-left: 0px;
 margin-right: 0px;
text-align: right;
 }
 #frontpage_search{
 margin-top:-13px;
 }
 #frontpage_examples div#examples_0 li, #frontpage_examples div#examples_1 li{
 margin-top:4px;
 margin-bottom:3px;
 }
 #user_locale_switcher a, #header #user_locale_switcher span{
 margin-left:5px;
 margin-right:5px;
 }
 #user_locale_switcher a{
  color: #1F1F1F;
  }
 #user_locale_switcher span{
  color:#900000;
  }
  #topnav li a.active{
    color:#900000;
  }
div#about_sidebar{
  margin-bottom:20px;
  }
  div.correspondence{
  width:600px;
  }
  #footer{
  margin-left:5px;
  width: 894px;
  min-height:100px;
  }
  .after-footer{
  	background: url("../iz_images/navimg/after-footer.png") no-repeat left bottom;
	height:10px;
	width:904px;
	float:left;
  }
  #logged_in_bar a, #logged_in_bar a:visited{
  color:#900000;
  }

 div#banner, div#orglogo {
   display: none;
 }

 div.lang {
    left: 67%;
    position: absolute;
    top: 0;
 }
#navigation_search {
	position: static;
	padding-bottom: 8px;
}

body{
	background: #eeeeee;
}
#header #tagline {
 color: green;
}

h1 {
 color: blue ! important;
}
#header h1 a {
    background-image: url("../iz_images/navimg/alaveteli-logo.png");
	width: 212px;
	height: 87px;
	margin-left: 5px;
}
#header #tagline {
 	display: none;
}
#header{
	height: 87px;
	position: static;
	width:900px;
}
.entirebody{
	width: 904px;
	margin: 0 auto;
    background: url("../iz_images/navimg/entirebody.png") repeat-y left top;
}
#topnav {
	background: url("../iz_images/navimg/main-nav-bg.png") repeat-x left top;
	height: 32px;
	float: left;
	margin-left: 5px;
	width: 894px;
	position: static;
	z-index: 0;
}
#frontpage_search{
	background: none;
}
#topnav li a, #content a, #footer a{
	color: #1f1f1f;
}
#topnav li a:visited, #content a:visited, #footer a:visited{
	color: #585858;
}
#topnav li a:hover, #content a:hover, #footer a:hover{
	color: #900000;
}
#navigation_search {
	width:900px;;
}
.lang{
	float: right;
    width: 200px;
}
#wrapper{
	padding: 0px;
}
 .entirebody:after {
    clear:both;
    content:".";
    display:block;
    height:0;
    line-height:0;
    visibility:hidden;
}
#content{
padding:2em;
padding-right:50px;
}
#content h1, #frontpage_search h1, .controller_request h1{
color:#900000 !important;
}
div#blog_sidebar{
margin-right:23px;
}
.blog_post{
padding-right:25px;
}
#query{
	background: url("../iz_images/navimg/second-search.png") no-repeat left top;
	border:none;
	height:32px;
	width:404px;
	padding-left:5px;
	padding-right:5px;
	margin-bottom: 10px;
}

.controller_general h1{
color:#900000;
}
#topnav ul{
padding: 3px;
}
#logged_in_bar{
 width: auto;
 color:#1F1F1F;
 margin-right: 10px;
 margin-top: -3px;
 }
 #frontpage_search{
 margin-top:-13px;
 }
 #frontpage_examples div#examples_0 li, #frontpage_examples div#examples_1 li{
 margin-top:4px;
 margin-bottom:3px;
 }
 #user_locale_switcher a, #header #user_locale_switcher span{
 margin-left:5px;
 margin-right:5px;
 }
 #user_locale_switcher a{
  color: #1F1F1F;
  }
 #user_locale_switcher span{
  color:#900000;
  }
  #topnav li a.active{
    color:#900000;
  }
div#about_sidebar{
  margin-bottom:20px;
  }
  div.correspondence{
  width:600px;
  }
  #footer{
  margin-left:5px;
  width: 894px;
  min-height:100px;
  }
  .after-footer{
  	background: url("../iz_images/navimg/after-footer.png") no-repeat left bottom;
	height:10px;
	width:904px;
	float:left;
  }
  #logged_in_bar a, #logged_in_bar a:visited{
  color:#900000;
  }

 div#banner, div#orglogo {
   display: none;
 }

 div.lang {
    left: 67%;
    position: absolute;
    top: 0;
 }
#navigation_search {
	position: static;
	padding-bottom: 8px;
}