Fix size of frontpage pictures

Fix size of frontpage pictures

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

<%= _("Ejerce tu derecho a saber.") %>

1

2

3

<%= _("Para obtener información de instituciones públicas:") %>

<%= _("Piensa una pregunta para un organismo público.") %>

<%= _("Nosotros enviamos la pregunta por ti.") %>

<%= _("Te avisamos cuando haya una respuesta.") %>

            <%= link_to _("Preguntar »"), body_index_path %>

            <%= link_to _("¿Contestarán? »"), help_requesting_path(:anchor => 'making_requests') %>

Anteproyecto de Ley de Transparencia

El gobierno publicará el próximo lunes 26 el anteproyecto de Ley de Transparencia, y podrás enviar tus comentarios durante 15 días a través del Ministerio de la Presidencia.

¡Nos vemos el lunes!

Este lunes 26 a las 20:00 horas
 estaremos en Utopic_US (Madrid) presentando tuderechoasaber.es. ¡Os esperamos!.

También puedes vernos por streaming.

Twittear

<%= _("Haz una búsqueda entre las peticiones ya realizadas:") %>

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

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

              <% end %>

<%= _("Novedades") %>

                <%
                  # XXX: The ugliest hack, for launch day only
                  leads = [
                    'Se pregunta sobre todo a ministerios sobre subvenciones, facturas impagadas o denuncias a los cuerpos de seguridad.',
                    'El texto del borrador del anteproyecto de ley se podrá consultar desde hoy.',
                    'Los políticos la han prometido desde 2004, pero España sigue aún sin ley de transparencia.',
                    'Ya estamos en marcha. Entra con nosotros en el fascinante mundo de pedir información que es tuya.'
                  ];

                  position = 0;
                  for item in @blog_items[0..3]:
                    position = position + 1; %>
                  <div class="frontpage-blog-post <%= position.even? ? 'right' : 'left' %>">
                    <img src="/tuderechoasaber-theme/images/posts/<%= item['title'].to_s.gsub(/[^A-Za-z]/,'').downcase %>.jpg" width="278" height="128"/>

                      <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

<%= h excerpt(leads[position-1], "", 200) %>

<a href="<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>"><%= _("Leer más »") %>

                <% end %>

<%= _("Peticiones destacadas") %>

                <% @featured_requests.each do |featured_request| %>
                <%= render :partial => 'track/tracking_request_links',
                      :locals => {
                        :track_thing => TrackThing.create_track_for_request(featured_request),
                        :own_request => featured_request.user == @user,
                        :location => "frontpage"
                      } %>
                <% end %>

<% end %>

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

<%= _("Ejerce tu derecho a saber.") %>

1

2

3

<%= _("Para obtener información de instituciones públicas:") %>

<%= _("Piensa una pregunta para un organismo público.") %>

<%= _("Nosotros enviamos la pregunta por ti.") %>

<%= _("Te avisamos cuando haya una respuesta.") %>

            <%= link_to _("Preguntar »"), body_index_path %>

            <%= link_to _("¿Contestarán? »"), help_requesting_path(:anchor => 'making_requests') %>

Anteproyecto de Ley de Transparencia

El gobierno publicará el próximo lunes 26 el anteproyecto de Ley de Transparencia, y podrás enviar tus comentarios durante 15 días a través del Ministerio de la Presidencia.

¡Nos vemos el lunes!

Este lunes 26 a las 20:00 horas
 estaremos en Utopic_US (Madrid) presentando tuderechoasaber.es. ¡Os esperamos!.

También puedes vernos por streaming.

Twittear

<%= _("Haz una búsqueda entre las peticiones ya realizadas:") %>

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

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

              <% end %>

<%= _("Novedades") %>

                <%
                  # XXX: The ugliest hack, for launch day only
                  leads = [
                    'Se pregunta sobre todo a ministerios sobre subvenciones, facturas impagadas o denuncias a los cuerpos de seguridad.',
                    'El texto del borrador del anteproyecto de ley se podrá consultar desde hoy.',
                    'Los políticos la han prometido desde 2004, pero España sigue aún sin ley de transparencia.',
                    'Ya estamos en marcha. Entra con nosotros en el fascinante mundo de pedir información que es tuya.'
                  ];

                  position = 0;
                  for item in @blog_items[0..3]:
                    position = position + 1; %>
                  <div class="frontpage-blog-post <%= position.even? ? 'right' : 'left' %>">
                    <img src="/tuderechoasaber-theme/images/posts/<%= item['title'].to_s.gsub(/[^A-Za-z]/,'').downcase %>.jpg" width="278"/>

                      <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

<%= h excerpt(leads[position-1], "", 200) %>

<a href="<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>"><%= _("Leer más »") %>

                <% end %>

<%= _("Peticiones destacadas") %>

                <% @featured_requests.each do |featured_request| %>
                <%= render :partial => 'track/tracking_request_links',
                      :locals => {
                        :track_thing => TrackThing.create_track_for_request(featured_request),
                        :own_request => featured_request.user == @user,
                        :location => "frontpage"
                      } %>
                <% end %>

<% end %>


point to alaveteli instead of the mysoc github

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

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.

    The amazing team of volunteers who run the site, answer your support
    emails, maintain the database of public authorities and
    so much more.
    Thanks to John Cross, Ben Harris, Adam McGreggor, Alex Skene,
    Richard Taylor.

    Volunteers who have provided patches to the code - thanks Peter Collingbourne
    and Tony Bowden.

    Everyone who has helped look up FOI email addresses.

    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.

    Finally, all the officers and servants who have answered the many requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

You're all stars.

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a registered charity.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out FOI email addresses of authorities that we're missing.

Write a blog post about either WhatDoTheyKnow or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the source code for our parent project, Alaveteli
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering with mySociety.

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

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.

    The amazing team of volunteers who run the site, answer your support
    emails, maintain the database of public authorities and
    so much more.
    Thanks to John Cross, Ben Harris, Adam McGreggor, Alex Skene,
    Richard Taylor.

    Volunteers who have provided patches to the code - thanks Peter Collingbourne
    and Tony Bowden.

    Everyone who has helped look up FOI email addresses.

    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.

    Finally, all the officers and servants who have answered the many requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

You're all stars.

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a registered charity.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out FOI email addresses of authorities that we're missing.

Write a blog post about either WhatDoTheyKnow or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the
    source code
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering with mySociety.


added favicons

added favicons

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

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <%= favicon %>
  <title><%= title_from_breadcrumbs %></title>
  <%= stylesheet_link_tag 'ui' %>
  <%= stylesheet_link_tag 'navigation' %>
  <%= stylesheet_link_tag 'main' %>
  <%= stylesheet_link_tag 'errors' %>
  <%= javascript_include_tag :defaults %>

<body class="<%=body_class||=''%>">

    <%= render 'layouts/masthead' %>

    <%= render 'layouts/menu' %>


Oops.

Oops.

<% form_tag({:action => "signin"}, {:id => "signin_form"}) do %>
    <%= foi_error_messages_for :user_signin %>

    <% if not sign_in_as_existing_user %>

If you've used WhatDoTheyKnow before

    <% end %>

    Your e-mail:
    <%= text_field 'user_signin', 'email', { :size => 20 } %>

    Password:
    <%= password_field 'user_signin', 'password', { :size => 15 } %>

    <%= link_to "Forgotten your password?", signchange_url + "?pretoken=" + h(params[:token]) %>

    <%= check_box_tag 'remember_me', "1" %>
    Remember me (keeps you signed in longer;
    do not use on a public computer)

    <%= hidden_field_tag 'token', params[:token], { :id => 'signin_token' } %>
    <%= submit_tag "Sign in" %>

<% end %>


Remove spurious </table>

Remove spurious </table>

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

<%=@title%>

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

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

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

<% end %>

<% if @public_bodies_by_tag.size > 0 %>

Exact tag matches

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

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

    <% end %>

<% end %>

<% if @public_bodies.size > 0 %>

Substring search matches

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

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

    <% end %>

<% end %>

<%= will_paginate(@public_bodies) %>


Messing with dates to get differences

Messing with dates to get differences

Open defects

      Status
      Id
      Title
      Priority
      Severity
      Assigned to
      Due
      Raised by
      Days

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

        <%= d.test_observation.status %>
        <%= d.test_observation_id %>
        <%= link_to_item d.test_observation %>
        <%= d.test_observation.priority_code %>
        <%= d.test_observation.detail.severity_code %>
        <%= link_to_item d.test_observation.person %>
        <td <%= overdue_class(d.test_observation) %>>
          <%= d.test_observation.due_on.strftime(date_format) unless d.test_observation.due_on.nil? %>

        <%= link_to_item d.test_observation.first_version_updated_by %>
        <%= (Date.today.jd - d.test_observation.first_version_updated_at.jd) %>

    <% end %>

Open defects

      Status
      Id
      Title
      Priority
      Severity
      Assigned to
      Due
      Raised by
      Days

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

        <%= d.test_observation.status %>
        <%= d.test_observation_id %>
        <%= link_to_item d.test_observation %>
        <%= d.test_observation.priority_code %>
        <%= d.test_observation.detail.severity_code %>
        <%= link_to_item d.test_observation.person %>
        <td <%= overdue_class(d.test_observation) %>>
          <%= d.test_observation.due_on.strftime(date_format) unless d.test_observation.due_on.nil? %>

        <%= link_to_item d.test_observation.first_version_updated_by %>
        <%= (Date.today - d.test_observation.first_version_updated_at) %>

    <% end %>


Fix for issue 23: Sorting pages doesn't work in Journey 2.0


signature presentation improved

signature presentation improved

<% if section == :table %>

    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :head } %>
    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :body },
           :collection => @signatures %>
    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :foot } %>

<% elsif section == :head %>

Signatures

  <%= form_remote_tag :url => { :action => 'add_signature', :id => @item.id } %>

          Signatory
          Sign-off
          Action

<% elsif section == :body %>

      <tr id="signature_edit_line<%= signature_edit_line.id %>">
        <%= link_to_item signature_edit_line.person %>
        <%= signature_edit_line.status.value %>

          <% unless signature_edit_line.signed_at.nil? %>
            Signed
          <% else %>
            <% if signature_edit_line.person_id == session[:person].id %>
            <%= link_to_remote 'remove',
                  :url => { :action => 'withdraw_signature',
                            :id => signature_edit_line.item_id,
                            :line_id => signature_edit_line.id } %>
            <% else %>

            <% end %>
          <% end %>

<% elsif section == :foot %>

      <%= render :partial => 'item/signature_edit_line', :locals => { :section => :fields } if editing? %>

  </form>

<% elsif section == :fields %>

      <%= select :signature, :person_id, select_for_signatories(@item) %>
      <%= select :signature, :status_id, select_for_status(@item.class) %>
      <%= submit_tag 'Add', :class => 'button' %>

<% end %>

<% if section == :table %>

    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :head } %>
    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :body },
           :collection => @signatures %>
    <%= render :partial => 'item/signature_edit_line', :locals => { :section => :foot } %>

<% elsif section == :head %>

Signatures

  <%= form_remote_tag :url => { :action => 'add_signature', :id => @item.id } %>

          Signatory
          Sign-off
          Action

<% elsif section == :body %>

      <tr id="signature_edit_line<%= signature_edit_line.id %>">
        <%= link_to_item signature_edit_line.person %>
        <%= signature_edit_line.status.value %>

          <% if signature_edit_line.person_id == session[:person].id && signature_edit_line.signed_at.nil? %>
            <%= link_to_remote 'remove',
                  :url => { :action => 'withdraw_signature',
                            :id => signature_edit_line.item_id,
                            :line_id => signature_edit_line.id} %>
          <% else %>
            Signed
          <% end %>

<% elsif section == :foot %>

      <%= render :partial => 'item/signature_edit_line', :locals => { :section => :fields } if editing? %>

  </form>

<% elsif section == :fields %>

      <%= select :signature, :person_id, select_for_signatories(@item) %>
      <%= select :signature, :status_id, select_for_status(@item.class) %>
      <%= submit_tag 'Add', :class => 'button' %>

<% end %>


forgot for last commit (#1556)

forgot for last commit (#1556)

<% if @accepted.length > 0 %>
    <form>

<%= sortable_table %>

        <%= th 'name' %>
        <%= th 'campus' %>
        <%= th 'project' %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'appln (entire)' %>
        <% end %>
        <%= th 'appln (summary)' %>
        <%= th 'accepted at', 'str', true %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'support claimed', 'currency' %>
            <%= th 'support recvd', 'currency' %>
            <%= th 'support goal', 'currency'%>
            <%= th 'support coach', 'dropdown' %>
        <% end %>
        <%= th 'intern' %>
        <%= th 'other' %>

        <% for acceptance in @accepted %>
          <%
          if acceptance.project != @project
            @project = acceptance.project
            @user.set_project @project

            @full_view = @user.fullview?
            @cache = ProfileDonation.cache @project.id
          end
          %>

          <tr id="row_<%=acceptance.id%>">
	    <% appln = acceptance.appln; viewer = acceptance.viewer %>
	    <% viewer = appln.viewer if viewer.nil? && appln %>
	    <% if viewer.nil? %>
	      missing viewer for acceptance <%= acceptance.id %>
            <% else %>
              <%=h viewer.name %>
              <% if viewer.person %>
	        <%= h viewer.person.campus_shortDesc %>
		  <% else %>
		    no person for viewer '<%= viewer.viewer_userID %>' id <%= viewer.id %>
		  <% end %>

	    <% end %>
            <%= acceptance.project.title %>
            <% if @full_view %>

                  <%= view_entire_link acceptance.id %>

            <% elsif @restricted_full_view %>

            <% end %>

              <%= view_summary_link acceptance.id %>

            <%= format_date(acceptance.accepted_at) %>
            <% if @full_view %>
                <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
                <%= format_currency acceptance.donations_total(:cache => @cache) %>
                <%= format_currency acceptance.funding_target(@eg) %>

                    <% if @user.can_modify_profile_in_project @project %>
                        <% name = "support_coach_#{acceptance.id}" %>
                        <% support_coach_id = acceptance.support_coach.nil? ? '' : acceptance.support_coach_id %>
                        <%= render :partial => 'support_coach_choice', :locals => { :name => name, :current => support_coach_id } %>

                  	    <%= observe_field name,
                                   :url => {
                                      :controller => :acceptance,
                                      :action => :update_support_coach,
                                      :id => acceptance.id,
                                      :update => "support_coach_#{acceptance.id}",
                                      :profile_id => acceptance.id,
                                   },
                              	:complete => visual_effect(:highlight, "row_#{acceptance.id}"),
                                  :with =>  "'support_coach_id='+escape($('#{name}').value)"
                         %>
                    <% else %>
                        <%= acceptance.support_coach_str
                          %>
                    <% end %>

            <% elsif @restricted_full_view %>

            <% end %>

            <%= render :partial => 'accepted_pile_table_intern', :object => acceptance %>

                <% if @user.is_projects_coordinator? %>
                  <% name = "acceptance_#{acceptance.id}" %>

                  <%= withdraw_move_link acceptance.id %>

                  <%= manual_donations_link acceptance.motivation_code %>

                  <%= costing_link acceptance.id %>
                <% else %>
                  <% if acceptance.as_intern? %>intern<% end %>

                  <% if @user.is_projects_coordinator? || @user.is_project_administrator? %>

                      <%= costing_link acceptance.id %>
                  <% end %>
                <% end %>

		<% if @user.is_projects_coordinator? || @user.is_processor? %>
		  <% if appln %>
                    <%= edit_always_editable_link appln.id %>
		  <% else %>
		    Error: no appln for acceptance <%= acceptance.id %>
		  <% end %>
                <% end %>

                <%= travel_link acceptance.id %>

        <% end %>

  </form>
<% else %>

empty

<% end %>

<% if @accepted.length > 0 %>
    <form>

<%= sortable_table %>

        <%= th 'name' %>
        <%= th 'campus' %>
        <%= th 'project' %>
        <% if @full_view %>
            <%= th 'appln (entire)' %>
        <% end %>
        <%= th 'appln (summary)' %>
        <%= th 'accepted at', 'str', true %>
        <% if @full_view %>
            <%= th 'support claimed', 'currency' %>
            <%= th 'support recvd', 'currency' %>
            <%= th 'support goal', 'currency'%>
            <%= th 'support coach', 'dropdown' %>
        <% end %>
        <%= th 'intern' %>
        <%= th 'other' %>

        <% for acceptance in @accepted %>
          <%
          @project ||= acceptance.project
          @user.set_project @project
          %>

          <tr id="row_<%=acceptance.id%>">
	    <% appln = acceptance.appln; viewer = acceptance.viewer %>
	    <% viewer = appln.viewer if viewer.nil? && appln %>
	    <% if viewer.nil? %>
	      missing viewer for acceptance <%= acceptance.id %>
            <% else %>
              <%=h viewer.name %>
              <% if viewer.person %>
	        <%= h viewer.person.campus_shortDesc %>
		  <% else %>
		    no person for viewer '<%= viewer.viewer_userID %>' id <%= viewer.id %>
		  <% end %>

	    <% end %>
            <%= acceptance.project.title %>
            <% if @full_view %>

                  <%= view_entire_link acceptance.id %>

            <% end %>

              <%= view_summary_link acceptance.id %>

            <%= format_date(acceptance.accepted_at) %>
            <% if @full_view %>
                <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
                <%= format_currency acceptance.donations_total(:cache => @cache) %>
                <%= format_currency acceptance.funding_target(@eg) %>

                    <% if @user.can_modify_profile_in_project @project %>
                        <% name = "support_coach_#{acceptance.id}" %>
                        <% support_coach_id = acceptance.support_coach.nil? ? '' : acceptance.support_coach_id %>
                        <%= render :partial => 'support_coach_choice', :locals => { :name => name, :current => support_coach_id } %>

                  	    <%= observe_field name,
                                   :url => {
                                      :controller => :acceptance,
                                      :action => :update_support_coach,
                                      :id => acceptance.id,
                                      :update => "support_coach_#{acceptance.id}",
                                      :profile_id => acceptance.id,
                                   },
                              	:complete => visual_effect(:highlight, "row_#{acceptance.id}"),
                                  :with =>  "'support_coach_id='+escape($('#{name}').value)"
                         %>
                    <% else %>
                        <%= acceptance.support_coach_str
                          %>
                    <% end %>

            <% end %>

            <%= render :partial => 'accepted_pile_table_intern', :object => acceptance %>

                <% if @user.is_projects_coordinator? %>
                  <% name = "acceptance_#{acceptance.id}" %>

                  <%= withdraw_move_link acceptance.id %>

                  <%= manual_donations_link acceptance.motivation_code %>

                  <%= costing_link acceptance.id %>
                <% else %>
                  <% if acceptance.as_intern? %>intern<% end %>

                  <% if @user.is_projects_coordinator? || @user.is_project_administrator? %>

                      <%= costing_link acceptance.id %>
                  <% end %>
                <% end %>

		<% if @user.is_projects_coordinator? || @user.is_processor? %>
		  <% if appln %>
                    <%= edit_always_editable_link appln.id %>
		  <% else %>
		    Error: no appln for acceptance <%= acceptance.id %>
		  <% end %>
                <% end %>

                <%= travel_link acceptance.id %>

        <% end %>

  </form>
<% else %>

empty

<% end %>


Added single line fix for IE7/Safari and many line fix for IE6.

  <%= start_form_tag :controller => 'geocoder', :action => 'search' %>
  <%= text_field 'query', 'postcode'%>
  <%= text_field 'query', 'place_name'%>
  <%= submit_tag 'Search' %>
  <%= end_form_tag %>

    Geolocation provided by npemap.org.uk,
    geocoder.us, geocoder.ca
    and geonames.org

    eg: SW15 6JH, 95472 or H2L4C1

    eg:Essen

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = params['mlon'] %>
<% mlat = params['mlat'] %>
<% lon =  params['mlon'] %>
<% lat =  params['mlat']  %>
<% zoom =  params['zoom'] || '12' %>

<% elsif @user and params['lon'].nil? and params['lat'].nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<%else%>
<% lon =  params['lon'] || '-0.1' %>
<% lat =  params['lat'] || '51.5' %>
<% zoom =  params['zoom'] || '4' %>
<% end %>


small fix to the folio controller. "Don't display delete all or download all" if the folio is empty.

git-svn-id: 035394e0ea20290a56a73539b1ebfcd8236adefd@195 7bd17f4f-1217-0410-bbc5-bc4367116c30

Folio Items

<%= render :partial=>'asset/list' -%>
<% if session[:folio].size > 0 %>

<%= link_to'Empty Folio', {:controller=>'folio', :action=>'remove_all'},{:post=>true} %>

<%= link_to'Download Archive of folio as a .zip file', :action=>'zip' %>

<% end -%>

Folio Items

<%= render :partial=>'asset/list'%>

<%= link_to'Empty Folio', {:controller=>'folio', :action=>'remove_all'},{:post=>true} %>

<%= link_to'Download Archive of folio as a .zip file', :action=>'zip' %>


Update the links when the active layers change.

Closes #622.

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

Permalink

http://creativecommons.org/licenses/by-sa/2.0/
http://openstreetmap.org/

Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and it's contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("location") %>
<% lon,lat,zoom,layers = cookies["location"].value.first.split(",") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% end %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>


Fix timeline (outgoing_messages undefined) when outgoing message edited

<% @title = "Timeline" %>

    Hour
    Day
    2 days
    Week
    Month
    All time

<%=h @events_title%>

<% last_date = nil %>
<% for event, event_at in @events %>
    <% if last_date != event_at.to_date %>
        <% if last_date.nil? %>

        <% end %>

<%= simple_date(event_at) %>

    <% else %>

    <% end %>
    <% last_date = event_at.to_date %>

    <%= simple_time(event_at) %>

    <% if event.is_a? InfoRequestEvent %>
        <%= link_to(''.html_safe, request_admin_url(event.info_request), :title => "view full details")%>
        <%= link_to(event.info_request.title, main_url(request_url(event.info_request)), :title => "view request on public website")%>

        <% if event.event_type == 'edit' %>
            was edited by administrator <%=h event.params[:editor] %>.
            <% for p in ['title', 'prominence', 'described_state', 'awaiting_description']
                    if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                        %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                    end
               end
            %>
        <% elsif event.event_type == 'edit_outgoing' %>
            <% outgoing_message = OutgoingMessage.find(event.params[:outgoing_message_id].to_i) %>
            had outgoing message edited by administrator <%=h event.params[:editor] %>.
            <% if outgoing_message %>
                <% for p in ['body']
                        if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                            %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                        end
                   end
                %>
            <% else %>
                Missing outgoing message, internal error.
            <% end %>
        <% elsif event.event_type == 'edit_comment' %>
            <% comment = Comment.find(event.params[:comment_id].to_i) %>
            had annotation edited by administrator <%=h event.params[:editor] %>.
            <% if comment %>
                <% for p in ['body']
                        if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                            %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                        end
                   end
                %>
            <% else %>
                Missing annotation, internal error.
            <% end %>
        <% elsif event.event_type == 'destroy_incoming' %>
            had incoming message deleted by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'destroy_outgoing' %>
            had outgoing message deleted by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'hide' %>
            was hidden by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'redeliver_outgoing' %>
            had incoming message redelivered to another request by administrator <%=h event.params[:editor] %>.
         <% elsif event.event_type == 'response' %>
            <% incoming_message = event.incoming_message %>
            received
            <%= link_to 'a response', main_url(incoming_message_url(incoming_message)) %>
            from <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'sent' %>
            was initially sent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'resent' %>
            had the request resent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'followup_sent' %>
            had a follow up message sent to <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'comment' %>
            had an annotation posted by <%=h event.comment.user.name %>.
        <% elsif event.event_type == 'status_update' %>
                had its status updated by <%=h User.find(event.params[:user_id]).name %> from '<%= h event.params[:old_described_state] %>' to '<%= h event.params[:described_state] %>'.
        <% else %>
            had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
        <% end %>
    <% else %>
        <%= link_to(''.html_safe, public_body_admin_url(event.public_body), :title => "view full details")%>
        <%= link_to(event.public_body.name, main_url(public_body_url(event.public_body)), :title => "view authority on public website")%>
        was created/updated by administrator <%=h event.last_edit_editor %>
    <% end %>
<% end %>
<%= will_paginate(@events, :class => 'paginator') %>
<% if not @events.empty? %>

<% end %>

<% @title = "Timeline" %>

    Hour
    Day
    2 days
    Week
    Month
    All time

<%=h @events_title%>

<% last_date = nil %>
<% for event, event_at in @events %>
    <% if last_date != event_at.to_date %>
        <% if last_date.nil? %>

        <% end %>

<%= simple_date(event_at) %>

    <% else %>

    <% end %>
    <% last_date = event_at.to_date %>

    <%= simple_time(event_at) %>

    <% if event.is_a? InfoRequestEvent %>
        <%= link_to(''.html_safe, request_admin_url(event.info_request), :title => "view full details")%>
        <%= link_to(event.info_request.title, main_url(request_url(event.info_request)), :title => "view request on public website")%>

        <% if event.event_type == 'edit' %>
            was edited by administrator <%=h event.params[:editor] %>.
            <% for p in ['title', 'prominence', 'described_state', 'awaiting_description']
                    if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                        %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                    end
               end
            %>
        <% elsif event.event_type == 'edit_outgoing' %>
            <% outgoing_message = OutgoingMessage.find(event.params[:outgoing_message_id].to_i) %>
            had outgoing message edited by administrator <%=h event.params[:editor] %>.
            <% if outgoing_messages.size > 0 %>
                <% outgoing_message = outgoing_messages[0] %>
                <% for p in ['body']
                        if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                            %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                        end
                   end
                %>
            <% else %>
                Missing outgoing message, internal error.
            <% end %>
        <% elsif event.event_type == 'edit_comment' %>
            <% comment = Comment.find(event.params[:comment_id].to_i) %>
            had annotation edited by administrator <%=h event.params[:editor] %>.
            <% if comment %>
                <% for p in ['body']
                        if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                            %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                        end
                   end
                %>
            <% else %>
                Missing annotation, internal error.
            <% end %>
        <% elsif event.event_type == 'destroy_incoming' %>
            had incoming message deleted by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'destroy_outgoing' %>
            had outgoing message deleted by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'hide' %>
            was hidden by administrator <%=h event.params[:editor] %>.
        <% elsif event.event_type == 'redeliver_outgoing' %>
            had incoming message redelivered to another request by administrator <%=h event.params[:editor] %>.
         <% elsif event.event_type == 'response' %>
            <% incoming_message = event.incoming_message %>
            received
            <%= link_to 'a response', main_url(incoming_message_url(incoming_message)) %>
            from <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'sent' %>
            was initially sent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'resent' %>
            had the request resent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'followup_sent' %>
            had a follow up message sent to <%=h event.info_request.public_body.name %>.
        <% elsif event.event_type == 'comment' %>
            had an annotation posted by <%=h event.comment.user.name %>.
        <% elsif event.event_type == 'status_update' %>
                had its status updated by <%=h User.find(event.params[:user_id]).name %> from '<%= h event.params[:old_described_state] %>' to '<%= h event.params[:described_state] %>'.
        <% else %>
            had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
        <% end %>
    <% else %>
        <%= link_to(''.html_safe, public_body_admin_url(event.public_body), :title => "view full details")%>
        <%= link_to(event.public_body.name, main_url(public_body_url(event.public_body)), :title => "view authority on public website")%>
        was created/updated by administrator <%=h event.last_edit_editor %>
    <% end %>
<% end %>
<%= will_paginate(@events, :class => 'paginator') %>
<% if not @events.empty? %>

<% end %>


Treat case in which an order view is rendered and cycle is being edited

  <%= render :partial => 'distribution_plugin_session/view_header', :locals => {:session => @session} %>

  <%= render :partial => 'distribution_plugin_session/view_products', :locals => {:session => @session, :order => @order} %>

      <% if @admin_edit %>
        <%= _("Orders from \"%{consumer}\" on this cycle") % {:consumer => @consumer.name} %>
      <% else %>
        <%= _("Your orders on this cycle") %>
        <%= link_to _('new order'), {:controller => :distribution_plugin_order, :action => :new, :session_id => @session.id} if !@admin_edit and @session.orders? %>
      <% end %>

    <% if @admin_edit %>

          <%= _("Caution, you are editing the orders of \"%{consumer}\". It is preferable
                to make small editions through the cycle's administration, this way the person will be properly
                warned of the updates. We recommend using this page only if you're doing the order for the person") % {
            :consumer => @consumer.name } %>

          <%= link_to _('Edit your orders'), {:controller => :distribution_plugin_order, :action => :edit, :session_id => @session.id} %>
          <%# link_to _('Orders from another member'), {:controller => :distribution_plugin_order, :action => :reopen, :id => @order.id} %>
          <%= link_to _('Administration of this cycle'), {:controller => :distribution_plugin_session, :action => :edit, :id => @session.id} %>

        <%= link_to _("New order"), {:controller => :distribution_plugin_order, :action => :admin_new, :consumer_id => @order.consumer.id, :session_id => @session.id} if @session.orders? %>

    <% else %>
      <% unless @session.orders? and @consumer_orders.count != 0 %>

          <% if @session.orders? %>
            <%= _("You haven't placed any order on this cycle yet.") %>
          <% elsif @session.edition? %>
            <%= _("This cycle is not open yet.") %>
          <% else %>
            <%= _("This cycle is already closed.") %>
          <% end %>

      <% end %>
    <% end %>

    <% @consumer_orders.each do |order| %>
      <div id="consumer-order-<%= order.id %>" class="consumer-order <%= "edit" if @order == order %>">

        <%= render :partial => 'status', :locals => {:order => order} %>

        <% if @order == order %>
          <% unless order.open? %>
            <div id="order-status-message" class="order-message status-<%= order.current_status %>">

                <% if order.confirmed? %>
                  <%= _("Your order is confirmed and registered. Please follow the guidelines of the delivery method below, so that it happens without problems.") %>
                <% elsif order.cancelled? %>
                  <%= _("Your order was cancelled.") %>
                <% else %>
                  <%= _("Your order wasn't confirmed and the cycle orders period already ended.") %>
                <% end %>

<%= _('You still can:') %>

                <% if @session.orders? %>
                  <%= link_to _('change order'), {:controller => :distribution_plugin_order, :action => :reopen, :id => order.id}  %>
                  <%= _('(before the closing)') %>
                <% end %>
                <%= lightbox_link_to _('send message to the managers'), {:controller => :distribution_plugin_message, :action => :new_to_admins} %>

          <% end %>

            <%= render :partial => 'products', :locals => {:order => order} %>

            <%= render :partial => 'delivery', :locals => {:order => order} %>

        <% end %>

    <% end %>

  <%= javascript_include_tag '/plugins/distribution/waypoints.min.js' %>
  <% javascript_tag do %>
    jQuery(document).ready(function() {
      jQuery('#order-column').waypoint(function(event, direction) {
        if (jQuery(window).height() <= jQuery(this).height()) {
          jQuery(this).removeClass('sticky');
          return;
        }
        jQuery(this).css('left', jQuery(this).offset().left).toggleClass('sticky', direction == 'down');
        jQuery(this).parents('.page').css('margin-bottom', jQuery(this).height());
      }, {});
    });
  <% end %>

  <%= render :partial => 'distribution_plugin_session/view_header', :locals => {:session => @session} %>

  <%= render :partial => 'distribution_plugin_session/view_products', :locals => {:session => @session, :order => @order} %>

      <% if @admin_edit %>
        <%= _("Orders from \"%{consumer}\" on this cycle") % {:consumer => @consumer.name} %>
      <% else %>
        <%= _("Your orders on this cycle") %>
        <%= link_to _('new order'), {:controller => :distribution_plugin_order, :action => :new, :session_id => @session.id} if !@admin_edit and @session.orders? %>
      <% end %>

    <% if @admin_edit %>

          <%= _("Caution, you are editing the orders of \"%{consumer}\". It is preferable
                to make small editions through the cycle's administration, this way the person will be properly
                warned of the updates. We recommend using this page only if you're doing the order for the person") % {
            :consumer => @consumer.name } %>

          <%= link_to _('Edit your orders'), {:controller => :distribution_plugin_order, :action => :edit, :session_id => @session.id} %>
          <%# link_to _('Orders from another member'), {:controller => :distribution_plugin_order, :action => :reopen, :id => @order.id} %>
          <%= link_to _('Administration of this cycle'), {:controller => :distribution_plugin_session, :action => :edit, :id => @session.id} %>

        <%= link_to _("New order"), {:controller => :distribution_plugin_order, :action => :admin_new, :consumer_id => @order.consumer.id, :session_id => @session.id} if @session.orders? %>

    <% else %>
      <% unless @session.orders? and @consumer_orders.count != 0 %>

          <% if @session.orders? %>
            <%= _("You haven't placed any order on this cycle yet.") %>
          <% else %>
            <%= _("This cycle is already closed.") %>
          <% end %>

      <% end %>
    <% end %>

    <% @consumer_orders.each do |order| %>
      <div id="consumer-order-<%= order.id %>" class="consumer-order <%= "edit" if @order == order %>">

        <%= render :partial => 'status', :locals => {:order => order} %>

        <% if @order == order %>
          <% unless order.open? %>
            <div id="order-status-message" class="order-message status-<%= order.current_status %>">

                <% if order.confirmed? %>
                  <%= _("Your order is confirmed and registered. Please follow the guidelines of the delivery method below, so that it happens without problems.") %>
                <% elsif order.cancelled? %>
                  <%= _("Your order was cancelled.") %>
                <% else %>
                  <%= _("Your order wasn't confirmed and the cycle orders period already ended.") %>
                <% end %>

<%= _('You still can:') %>

                <% if @session.orders? %>
                  <%= link_to _('change order'), {:controller => :distribution_plugin_order, :action => :reopen, :id => order.id}  %>
                  <%= _('(before the closing)') %>
                <% end %>
                <%= lightbox_link_to _('send message to the managers'), {:controller => :distribution_plugin_message, :action => :new_to_admins} %>

          <% end %>

            <%= render :partial => 'products', :locals => {:order => order} %>

            <%= render :partial => 'delivery', :locals => {:order => order} %>

        <% end %>

    <% end %>

  <%= javascript_include_tag '/plugins/distribution/waypoints.min.js' %>
  <% javascript_tag do %>
    jQuery(document).ready(function() {
      jQuery('#order-column').waypoint(function(event, direction) {
        if (jQuery(window).height() <= jQuery(this).height()) {
          jQuery(this).removeClass('sticky');
          return;
        }
        jQuery(this).css('left', jQuery(this).offset().left).toggleClass('sticky', direction == 'down');
        jQuery(this).parents('.page').css('margin-bottom', jQuery(this).height());
      }, {});
    });
  <% end %>


Don't hardcode request status list in admin page, so custom states are included. Fixes #495

Edit basic details of request

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

Title (warning: editing this will break URLs right now)

   <%= text_field 'info_request', 'title', :size => 50  %>

Prominence
   <%= select( 'info_request', "prominence", [ "normal", "backpage", "requester_only", "hidden" ]) %>
   (backpage means hidden from lists/search; hidden means completely hidden; super users can see anything)

   Allow new responses from
   <%= select( 'info_request', "allow_new_responses_from", [ "anybody", "authority_only", "nobody" ] ) %>;
   Handle rejected responses with
   <%= select( 'info_request', "handle_rejected_responses", [ "bounce", "holding_pen", "blackhole" ] ) %>

   ('authority_only' means email From: domain of authority request email or any domain that has previously sent a response; 'nobody' also stops requester making followups; take care when using 'blackhole' which just drops mail)

Described state
   <%= select( 'info_request', "described_state", InfoRequest.enumerate_states ) %>;
    Awaiting description
   <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %>

(don't forget to change 'awaiting description' when you set described state)

Tags (space separated, can use key:value)

   <%= text_field 'info_request', 'tag_string', :size => 60  %>

<%= submit_tag 'Save changes', :accesskey => 's' %>

Note: To edit the actual request body text, click edit
  next to the specific outgoing message.

<% end %>

<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>

<% form_tag '../fully_destroy/' + @info_request.id.to_s do %>

    This is permanent and irreversible! <%= submit_tag 'Destory request entirely' %>

Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.

<% end %>

Edit basic details of request

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

Title (warning: editing this will break URLs right now)

   <%= text_field 'info_request', 'title', :size => 50  %>

Prominence
   <%= select( 'info_request', "prominence", [ "normal", "backpage", "requester_only", "hidden" ]) %>
   (backpage means hidden from lists/search; hidden means completely hidden; super users can see anything)

   Allow new responses from
   <%= select( 'info_request', "allow_new_responses_from", [ "anybody", "authority_only", "nobody" ] ) %>;
   Handle rejected responses with
   <%= select( 'info_request', "handle_rejected_responses", [ "bounce", "holding_pen", "blackhole" ] ) %>

   ('authority_only' means email From: domain of authority request email or any domain that has previously sent a response; 'nobody' also stops requester making followups; take care when using 'blackhole' which just drops mail)

Described state
   <%= select( 'info_request', "described_state",
       [
        'waiting_response',
        'waiting_clarification',
        'gone_postal',
        'not_held',
        'rejected',
        'successful',
        'partially_successful',
        'internal_review',
        'error_message',
        'requires_admin',
        'user_withdrawn'
    ]) %>;
    Awaiting description
   <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %>

(don't forget to change 'awaiting description' when you set described state)

Tags (space separated, can use key:value)

   <%= text_field 'info_request', 'tag_string', :size => 60  %>

<%= submit_tag 'Save changes', :accesskey => 's' %>

Note: To edit the actual request body text, click edit
  next to the specific outgoing message.

<% end %>

<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>

<% form_tag '../fully_destroy/' + @info_request.id.to_s do %>

    This is permanent and irreversible! <%= submit_tag 'Destory request entirely' %>

Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.

<% end %>


add profile_notes link to support coach list

<% @accepted = Acceptance.find_all_by_project_id_and_support_coach_id(project.id, @viewer.id) %>

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

            <%= th 'name' %>
            <%= th 'campus' %>
            <%= th 'email' %>
            <%= th 'permanent phone' %>
            <%= th 'local phone' %>

            <%= th 'support claimed', 'currency' %>
            <%= th 'support received', 'currency' %>

          <% for acceptance in @accepted %>
            <% viewer = acceptance.viewer %>

              <%=h viewer.name %>
              <%=h viewer.person.campus_shortDesc %>
              <%=h viewer.person.email %>
              <%=h viewer.person.person_phone %>
              <%=h viewer.person.person_local_phone %>

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %> <%= profile_notes_link acceptance.id %>

        <% end %>

<% else %>
<% end %>

<% @accepted = Acceptance.find_all_by_project_id_and_support_coach_id(project.id, @viewer.id) %>

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

            <%= th 'name' %>
            <%= th 'campus' %>
            <%= th 'email' %>
            <%= th 'permanent phone' %>
            <%= th 'local phone' %>

            <%= th 'support claimed', 'currency' %>
            <%= th 'support received', 'currency' %>

          <% for acceptance in @accepted %>
            <% viewer = acceptance.viewer %>

              <%=h viewer.name %>
              <%=h viewer.person.campus_shortDesc %>
              <%=h viewer.person.email %>
              <%=h viewer.person.person_phone %>
              <%=h viewer.person.person_local_phone %>

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %>

        <% end %>

<% else %>
<% end %>


Fixed some comments

Fixed some comments

<% @title = 'Name: ' + h(@name.text_name) %>

<% # Google Images | Distribution Map %>
<%= sprintf('Google Images' % @name.text_name) %>
<% if @data != [] %>
    | <%= link_to(:show_name_distribution_map.l, :action => 'map', :id => @name.id) %>
<% end %>

<% # Edit Name | Bulk Name Edit | Change Synonyms | Approve/Deprecate %>
<%= link_to 'Edit Name', :action => 'edit_name', :id => @name %>
  | <%= link_to 'Bulk Name Edit', :action => 'bulk_name_edit' %>
  | <%= link_to('Change Synonyms', :action => 'change_synonyms', :id => @name)%>
<% if @name.deprecated %>
  | <%= link_to('Approve', :action => 'approve_name', :id => @name)%>
<% else %>
  | <%= link_to('Deprecate', :action => 'deprecate_name', :id => @name)%>
<% end %>

<%= 'About: ' + textilize_without_paragraph(h(@name.display_name)) %>

	<%= :show_name_rank.l %>: <%= rank_as_string(@name.rank) %>

	<%= :show_name_status.l %>: <%= @name.status == "Valid" ? :show_name_valid.l : :show_name_deprecated.l %>

	<%= :show_name_name.l %>: <%= @name.text_name %>

	<%= :show_name_author.l %>: <%= @name.author %>

	<%= :show_name_citation.l %>: <%= textilize_without_paragraph(sanitize(@name.citation || '')) %>

	<%
	approved_synonyms, deprecated_synonyms = @name.sort_synonyms
	if approved_synonyms != []
	    links = approved_synonyms.map{|n| link_to(textilize_without_paragraph(h(n.display_name)), :action => "show_name", :id => n)}
        %>
        <%= @name.deprecated ? :show_name_preferred_synonyms.l : :show_name_synonyms.l %>: <%= links.join(', ') %>

	<%
	end
    if deprecated_synonyms != []
        links = deprecated_synonyms.map{|n| link_to(textilize_without_paragraph(h(n.display_name)), :action => "show_name", :id => n)}
        %>
        <%= :show_name_deprecated_synonyms.l %>: <%= links.join(', ') %>

    <% end %>
	<%= :show_name_version.l %>: <%= @name.version %>

	<% if @past_name %>
	    <%= link_to("#{:show_name_previous_version.l}: %s" % @past_name.version, :action => 'show_past_name', :id => @past_name.id) %>
	<% end %>

<% if @name.notes.to_s != "" %>

<%= :show_name_notes_and_comments.l %>:

        <%= textilize(sanitize(@name.notes.to_s)) %>

<% end %>

<% if @children != [] %>

<%= rank_as_plural_string(@children[0].rank) %>:

        <% i = 0
           max = 25
           for child in @children
            i += 1
            break if i > max %>
            <%= link_to(textilize_without_paragraph(h(child.display_name)),
                :action => 'show_name', :id => child) %>

        <% end %>
        <%= "And #{@children.length - i + 1} more...
" if i > max %>

<% end %>

<%
# -----------------------------------------
#  Draw the three groups of observations.
# -----------------------------------------
num_sects = 0
for sect in ["consensus", "synonym", "other"]

  if sect == "consensus"
    head  = :show_name_observations.l + ":"   # Header string to display above group.
    data  = @consensus_data                   # Data returned by sql query.
    page  = @consensus_page                   # Page number.
    pages = @consensus_pages                  # Pagination object.
    arg   = :consensus_page                   # Parameter used in pagination.
  elsif sect == "synonym"
    head  = :show_name_synonym_observations.l + ":"
    data  = @synonym_data
    page  = @synonym_page
    pages = @synonym_pages
    arg   = :synonym_page
  else
    head  = :show_name_other_observations.l + ":
" +
            "" +
              (:show_name_other_observations_notes.l %
                textilize_without_paragraph(h(@name.display_name)))
            ""
    data  = @other_data
    page  = @other_page
    pages = @other_pages
    arg   = :other_page
  end

  # Skip completely if group is empty.
  if data && data.length > 0

    # These are tacked on to the pagination links' urls.
    args = {}
    args[:consensus_page] = @consensus_page if @consensus_data != []
    args[:synonym_page] = @synonym_page     if @synonym_data != []
    args[:other_page] = @other_page         if @other_data != []
    args.delete arg

    # Add line break between groups.
    if num_sects > 0 %>

    <% end
    num_sects += 1

    # Wow this is ugly, but I can't find an option to pass to pagination_links
    # to have it tack the "#section" thing on the end of the urls for me.
    plinks = pagination_links(pages, :name => arg, :params => args).to_s
    plinks.gsub!(/<a href="([^<>]*)">/, '')
    %>

<a id="<%=sect%>"><%= head %>

<%= plinks %>

      <% odd_or_even = 0
      for datum in data
        odd_or_even = 1 - odd_or_even
        id = datum["id"] %>
        <tr valign="top" class="ListLine<%= odd_or_even %>">

            <%=
            image_id = datum["thumb_image_id"]
            if image_id
              link_to(image_tag(sprintf("thumb/%d.jpg", image_id), :border => 0),
                :controller => 'observer', :action => 'show_observation', :id => id)
            end
            %>

            <%= link_to(textilize_without_paragraph(h(datum["observation_name"] + " (#{id})")),
              :controller => 'observer', :action => 'show_observation', :id => id) %>

            <%= location_link(datum["where"], datum["location_id"]) %>:
            <%= user_link(datum["user_id"], "#{datum['name']} (#{datum['login']})") %>

            Observation made: <%= datum["when"]%>

            Community confidence:
              <%= v = datum["vote_cache"]
                v.nil? || v == "" ? "no votes" : (v.to_f*100/3).round.to_s + "%" %>

      <% end %>

<%= plinks %>

  <% end # if data.length > 0 %>
<% end # for section %>

  <%= :show_name_name_created.l %>: <%= @name.created %>

  <%= :show_name_last_modified.l %>: <%= @name.modified %> by <%= user_link(@name.user) %>

  <% rss_log = @name.rss_log
     if rss_log %>
  	<%= link_to :show_name_show_log.l, :controller => 'observer', :action => 'show_rss_log', :id => rss_log.id %>
  <% end %>

<% @title = 'Name: ' + h(@name.text_name) %>

# Google Images | Distribution Map
<%= sprintf('Google Images' % @name.text_name) %>
<% if @data != [] %>
    | <%= link_to(:show_name_distribution_map.l, :action => 'map', :id => @name.id) %>
<% end %>

# Edit Name | Bulk Name Edit | Change Synonyms | Approve/Deprecate
<%= link_to 'Edit Name', :action => 'edit_name', :id => @name %>
  | <%= link_to 'Bulk Name Edit', :action => 'bulk_name_edit' %>
  | <%= link_to('Change Synonyms', :action => 'change_synonyms', :id => @name)%>
<% if @name.deprecated %>
  | <%= link_to('Approve', :action => 'approve_name', :id => @name)%>
<% else %>
  | <%= link_to('Deprecate', :action => 'deprecate_name', :id => @name)%>
<% end %>

<%= 'About: ' + textilize_without_paragraph(h(@name.display_name)) %>

	<%= :show_name_rank.l %>: <%= rank_as_string(@name.rank) %>

	<%= :show_name_status.l %>: <%= @name.status == "Valid" ? :show_name_valid.l : :show_name_deprecated.l %>

	<%= :show_name_name.l %>: <%= @name.text_name %>

	<%= :show_name_author.l %>: <%= @name.author %>

	<%= :show_name_citation.l %>: <%= textilize_without_paragraph(sanitize(@name.citation || '')) %>

	<%
	approved_synonyms, deprecated_synonyms = @name.sort_synonyms
	if approved_synonyms != []
	    links = approved_synonyms.map{|n| link_to(textilize_without_paragraph(h(n.display_name)), :action => "show_name", :id => n)}
        %>
        <%= @name.deprecated ? :show_name_preferred_synonyms.l : :show_name_synonyms.l %>: <%= links.join(', ') %>

	<%
	end
    if deprecated_synonyms != []
        links = deprecated_synonyms.map{|n| link_to(textilize_without_paragraph(h(n.display_name)), :action => "show_name", :id => n)}
        %>
        <%= :show_name_deprecated_synonyms.l %>: <%= links.join(', ') %>

    <% end %>
	<%= :show_name_version.l %>: <%= @name.version %>

	<% if @past_name %>
	    <%= link_to("#{:show_name_previous_version.l}: %s" % @past_name.version, :action => 'show_past_name', :id => @past_name.id) %>
	<% end %>

<% if @name.notes.to_s != "" %>

<%= :show_name_notes_and_comments.l %>:

        <%= textilize(sanitize(@name.notes.to_s)) %>

<% end %>

<% if @children != [] %>

<%= rank_as_plural_string(@children[0].rank) %>:

        <% i = 0
           max = 25
           for child in @children
            i += 1
            break if i > max %>
            <%= link_to(textilize_without_paragraph(h(child.display_name)),
                :action => 'show_name', :id => child) %>

        <% end %>
        <%= "And #{@children.length - i + 1} more...
" if i > max %>

<% end %>

<%
# -----------------------------------------
#  Draw the three groups of observations.
# -----------------------------------------
num_sects = 0
for sect in ["consensus", "synonym", "other"]

  if sect == "consensus"
    head  = :show_name_observations.l + ":"   # Header string to display above group.
    data  = @consensus_data                   # Data returned by sql query.
    page  = @consensus_page                   # Page number.
    pages = @consensus_pages                  # Pagination object.
    arg   = :consensus_page                   # Parameter used in pagination.
  elsif sect == "synonym"
    head  = :show_name_synonym_observations.l + ":"
    data  = @synonym_data
    page  = @synonym_page
    pages = @synonym_pages
    arg   = :synonym_page
  else
    head  = :show_name_other_observations.l + ":
" +
            "" +
              (:show_name_other_observations_notes.l %
                textilize_without_paragraph(h(@name.display_name)))
            ""
    data  = @other_data
    page  = @other_page
    pages = @other_pages
    arg   = :other_page
  end

  # Skip completely if group is empty.
  if data && data.length > 0

    # These are tacked on to the pagination links' urls.
    args = {}
    args[:consensus_page] = @consensus_page if @consensus_data != []
    args[:synonym_page] = @synonym_page     if @synonym_data != []
    args[:other_page] = @other_page         if @other_data != []
    args.delete arg

    # Add line break between groups.
    if num_sects > 0 %>

    <% end
    num_sects += 1

    # Wow this is ugly, but I can't find an option to pass to pagination_links
    # to have it tack the "#section" thing on the end of the urls for me.
    plinks = pagination_links(pages, :name => arg, :params => args).to_s
    plinks.gsub!(/<a href="([^<>]*)">/, '')
    %>

<a id="<%=sect%>"><%= head %>

<%= plinks %>

      <% odd_or_even = 0
      for datum in data
        odd_or_even = 1 - odd_or_even
        id = datum["id"] %>
        <tr valign="top" class="ListLine<%= odd_or_even %>">

            <%=
            image_id = datum["thumb_image_id"]
            if image_id
              link_to(image_tag(sprintf("thumb/%d.jpg", image_id), :border => 0),
                :controller => 'observer', :action => 'show_observation', :id => id)
            end
            %>

            <%= link_to(textilize_without_paragraph(h(datum["observation_name"] + " (#{id})")),
              :controller => 'observer', :action => 'show_observation', :id => id) %>

            <%= location_link(datum["where"], datum["location_id"]) %>:
            <%= user_link(datum["user_id"], "#{datum['name']} (#{datum['login']})") %>

            Observation made: <%= datum["when"]%>

            Community confidence:
              <%= v = datum["vote_cache"]
                v.nil? || v == "" ? "no votes" : (v.to_f*100/3).round.to_s + "%" %>

      <% end %>

<%= plinks %>

  <% end # if data.length > 0 %>
<% end # for section %>

  <%= :show_name_name_created.l %>: <%= @name.created %>

  <%= :show_name_last_modified.l %>: <%= @name.modified %> by <%= user_link(@name.user) %>

  <% rss_log = @name.rss_log
     if rss_log %>
  	<%= link_to :show_name_show_log.l, :controller => 'observer', :action => 'show_rss_log', :id => rss_log.id %>
  <% end %>


Does what it says on the tin.

Does what it says on the tin.

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%
            # Angie, just change this to true / false :)
            yucky = true
        %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => yucky ? "stylesheet" : "alternate stylesheet" %>
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => yucky ? "alternate stylesheet" : "stylesheet"  %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Make and explore Freedom of Information requests

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

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

        <% end %>

Make request

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

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

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

			<% end %>

<%= link_to "About", 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 %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%
            # Angie, just change this to true / false :)
            yucky = true
        %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => yucky ? "stylesheet" : "alternate stylesheet" %>
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => yucky ? "alternate stylesheet" : "stylesheet"  %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Lift the lid on the UK public sector!

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

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

        <% end %>

Make request

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

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

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

			<% end %>

<%= link_to "About", 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 %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.


Elimine el equipo pues no es justo solo 2 personas cuando son tantas mas apoyando. Agregue referencia al apoyo de Cubox pagando el servidor.

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

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

¡Bienvenido a que sabes!

Somos el primer sitio en Uruguay que te facilita solicitar información a cualquier institución pública uruguaya comprendida en la Ley 18381. 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 puedan seguirlo.

Uruguay  cuenta con una ley de acceso a la información pública que le permite a cualquier persona solicitar inforamción al estado. La ley ha comenzado a implementarse pero todavia quedan desafios a resolver. Conseguir información de nuestras instituciones públicas es aveces difícil, pero  no imposible. Esta página ha sido diseñada por las organizaciones de la sociedad civil para facilitar el pedido de información y dar a conocer este derecho. Así podremos exigir una rendición de cuentas completa a nuestros gobernantes.

Además, también facilitamos el trabajo de los servidores 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.

quesabes.org se basa en la exitosa página británica de mySociety WhatDoTheyKnow.com. Otras aplicaciones iguales o similares ya están en marcha en otros países, como tuderechoasaber.es en España,  queremossaber.org en Brasil y otras experiencias en Alemania, Chile, Kosovo, EEUU 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 o departamental- 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 tanto de cuándo llega la respuesta.

En Uruguay las instituciones tienen hasta 20 días habiles (4 semanas) para contestarte, según la ley 18381 y la regulación administrativa vigente decreto 484/009 y 232/0120.

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 queres presentar un recurso. No te preocupes. El sistema te avisará si pasa el plazo y no recibes respuesta. También te podemos asesorar sobre los pasos a seguir si no obtienes respuesta.

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

¿Quién puede utilizar quesabes.org?

Cualquier persona puede enviar solicitudes de acceso a la información a través de esta página. Sólo tienes que tener en cuenta que existen ciertas restricciones dentro de la ley llamadas excepciones.

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

quesabes.org es una web creada por DATA con el apoyo de CAINFO, en base a trabajo voluntario de sus miembros.

DATA

DATA tiene como misión la creación de herramientas para el accionar colectivo, participativo y colaborativo, apoyándose en la comunidad a través de las tecnologías de la información y comunicación y el uso de la información pública. Promueve la participacion, aportando a facilitar las decisiones de la comunidad y generando nuevos espacios de debate público.

Voluntarios

Deseas colaborar con nosotros? Necesitamos ayuda en buscar información de las administraciones, organizar eventos, contactar a la prensa... Envianos un correo electronico a contacto arroba quesabes.org.

Patrocinadores de quesabes.org

Tambiés estamos abiertos a recibir colaboración de organizaciones interesadas que crean en este proyecto y que puedan ayudar a expandirlo y mejorarlo.

La web no podria haber sido posible sin el apoyo monetario de Cubox Labs al financiar el servidor donde esta alojada.

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

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

¡Bienvenido a que sabes!

Somos el primer sitio en Uruguay que te facilita solicitar información a cualquier institución pública uruguaya comprendida en la Ley 18381. 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 puedan seguirlo.

Uruguay  cuenta con una ley de acceso a la información pública que le permite a cualquier persona solicitar inforamción al estado. La ley ha comenzado a implementarse pero todavia quedan desafios a resolver. Conseguir información de nuestras instituciones públicas es aveces difícil, pero  no imposible. Esta página ha sido diseñada por las organizaciones de la sociedad civil para facilitar el pedido de información y dar a conocer este derecho. Así podremos exigir una rendición de cuentas completa a nuestros gobernantes.

Además, también facilitamos el trabajo de los servidores 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.

quesabes.org se basa en la exitosa página británica de mySociety WhatDoTheyKnow.com. Otras aplicaciones iguales o similares ya están en marcha en otros países, como tuderechoasaber.es en España,  queremossaber.org en Brasil y otras experiencias en Alemania, Chile, Kosovo, EEUU 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 o departamental- 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 tanto de cuándo llega la respuesta.

En Uruguay las instituciones tienen hasta 20 días habiles (4 semanas) para contestarte, según la ley 18381 y la regulación administrativa vigente decreto 484/009 y 232/0120.

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 queres presentar un recurso. No te preocupes. El sistema te avisará si pasa el plazo y no recibes respuesta. También te podemos asesorar sobre los pasos a seguir si no obtienes respuesta.

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

¿Quién puede utilizar quesabes.org?

Cualquier persona puede enviar solicitudes de acceso a la información a través de esta página. Sólo tienes que tener en cuenta que existen ciertas restricciones dentro de la ley llamadas excepciones.

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

quesabes.org es una web creada por DATA, en base a trabajo voluntario de sus miembros.

DATA

DATA tiene como misión la creación de herramientas para el accionar colectivo, participativo y colaborativo, apoyándose en la comunidad a través de las tecnologías de la información y comunicación y el uso de la información pública. Promueve la participacion, aportando a facilitar las decisiones de la comunidad y generando nuevos espacios de debate público.

El equipo

Gabriela Rodriguez (@gaba)

Gabriela es desarrolladora de software y permanente activista por el software libre. Es la persona que pueden contactar por cualquier duda técnica sobre la web.

Fabrizio Scrollini (@fscrollini)

Apasionado y curioso, por los estudios en transparencia y acceso a la información realiza su doctorado en departamento de gobienro de la Escuela de Economía y Ciencia Política de Londres. El "bichito le pico" cuando realizaba su maestría en la Universidad de Victoria en Nueva Zelandia. Es abogado y confiesa que de vez en cuando es útil. Ha trabajado con gobiernos en America Latina, asi como para organizaciones de la sociedad civil en estos temas. Le gusta el buceo, el bungee jumping y el tango. Siente a su país cerca, aunque transitoriamente, se encuentre lejos.

Voluntarios

Deseas colaborar con nosotros? Necesitamos ayuda en buscar información de las administraciones, organizar eventos, contactar a la prensa... Envianos un correo electronico a contacto arroba quesabes.org.

Patrocinadores de quesabes.org

Tambiés estamos abiertos a recibir colaboración de organizaciones interesadas que crean en este proyecto y que puedan ayudar a expandirlo y mejorarlo.


ActionItem934: delete button in the right

<%= content_tag('a', '', :name => comment.anchor) %>
<div class="article-comment<%= ' comment-from-owner' if ( comment.author && (@page.profile.name == comment.author.name) ) %> comment-logged-<%= comment.author ? 'in' : 'out' %>">

  <% if logged_in? && (user == @page.profile || user == comment.author || user.has_permission?(:moderate_comments, @page.profile)) %>
    <% button_bar(:style => 'float: right; margin-top: 0px;') do %>
      <%= icon_button(:delete, _('Remove this comment'), { :profile => params[:profile], :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %>
    <% end %>
  <% end %>

  <% if comment.author %>
    <%= link_to content_tag( 'span', comment.author.name() ), comment.author.url,
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % profile_icon(comment.author, :minor)
    %>
  <% else %>
    <%# unauthenticated user: display gravatar icon %>
    <%= content_tag 'span', ' ',
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % str_gravatar_url_for( comment.email, :size => 50 )
    %>
  <% end %>

<%= comment.title %>

    <%= _('By %{author} on %{date}') % {
        :author => comment.author ? link_to(comment.author.name, comment.author.url) : content_tag('u', comment.name),
        :date => show_time(comment.created_at) } %>
    <%= _('(unauthenticated user)') if ! comment.author %>

    <%= txt2html comment.body %>

<%= content_tag('a', '', :name => comment.anchor) %>
<div class="article-comment<%= ' comment-from-owner' if ( comment.author && (@page.profile.name == comment.author.name) ) %> comment-logged-<%= comment.author ? 'in' : 'out' %>">

  <% if comment.author %>
    <%= link_to content_tag( 'span', comment.author.name() ), comment.author.url,
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % profile_icon(comment.author, :minor)
    %>
  <% else %>
    <%# unauthenticated user: display gravatar icon %>
    <%= content_tag 'span', ' ',
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % str_gravatar_url_for( comment.email, :size => 50 )
    %>
  <% end %>

  <% if logged_in? && (user == @page.profile || user == comment.author || user.has_permission?(:moderate_comments, @page.profile)) %>
    <% button_bar(:style => 'float: right; margin-top: 0;') do %>
      <%= icon_button(:delete, _('Remove'), { :profile => params[:profile], :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %>
    <% end %>
  <% end %>

<%= comment.title %>

    <%= _('By %{author} on %{date}') % {
        :author => comment.author ? link_to(comment.author.name, comment.author.url) : content_tag('u', comment.name),
        :date => show_time(comment.created_at) } %>
    <%= _('(unauthenticated user)') if ! comment.author %>

    <%= txt2html comment.body %>


double arg

double arg

git-svn-id: bc266cc4dcdee41d9588461a87969679bbc3047f@801 7a65b82a-1d14-0410-b525-e2835e71a0b4

<% @title = 'Email Features' %>

Sending to <%= @users.length %> users.

<% form_tag(:action => 'email_features') do %>
  <%= submit_tag("Send") %>

  Feature Email

  <%= text_area('feature_email', 'content', :cols => 80) %>

    Users: <%= (@users.map { |u| u.login }).join(', ') %>

<% end %>

<% @title = 'Email Features' %>

Sending to <%= @users.length %> users.

<% form_tag(:action => 'feature_email') do %>
  <%= submit_tag("Send") %>

  Feature Email

  <%= text_area('feature_email', 'content', :cols => 80) %>

    Users: <%= (@users.map { |u| u.login }).join(', ') %>

<% end %>


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