ActionItem519: putting help back, but putting id makes the link
disappear

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

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

<% if logged_in? %>

    <img src="<%=
    (current_user.person.image)?
    current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
    %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
    <%= _("%s's Menu") % current_user.person.display_name %>

<a href="<%= homepage_path(:profile => current_user.login) %>"
             help="<%= _('Go to your home page.') %>"
             ><%= __('My Home Page') %>

      <% if MailConf.enabled? && current_user.enable_email %>

        <%= link_to '' + _('Webmail'), MailConf.webmail_url %>

      <% end %>

<%= link_to_myprofile( ''+ _('Control panel'),
                                   {}, nil, :id => 'link_edit_profile',
                                   :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')
                               ) %>

      <%=
        '
'+ link_to( ''+ _('Admin'),
                         { :controller => 'admin_panel' }, :id => 'link_admin_panel',
                         :help => _('Access the site administration panel.')
                       ) +
        '
' if user.is_admin?
      %>

<%= link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout'},
                                :id => 'link_logout',
                                :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                              ) %>

<% else %>

<%# lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login',
                     :help => _('Click here to enter your username and password and be recognized by the system.') %>

  <%= render :file => 'account/login' %>
  <%= thickbox_close_button _('Close') %>

<%= thickbox_inline_popup_link(''+ _('Login'), 'inlineLoginBox', :help => _('Click here to enter your username and password and be recognized by the system.')) %>

<% end %>

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

<% if logged_in? %>

    <img src="<%=
    (current_user.person.image)?
    current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
    %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
    <%= _("%s's Menu") % current_user.person.display_name %>

<a href="<%= homepage_path(:profile => current_user.login) %>"
             help="<%= _('Go to your home page.') %>"
             ><%= __('My Home Page') %>

      <% if MailConf.enabled? && current_user.enable_email %>

        <%= link_to '' + _('Webmail'), MailConf.webmail_url %>

      <% end %>

<%= link_to_myprofile( ''+ _('Control panel'),
                                   {}, nil, :id => 'link_edit_profile',
                                   :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')
                               ) %>

      <%=
        '
'+ link_to( ''+ _('Admin'),
                         { :controller => 'admin_panel' }, :id => 'link_admin_panel',
                         :help => _('Access the site administration panel.')
                       ) +
        '
' if user.is_admin?
      %>

<%= link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout'},
                                :id => 'link_logout',
                                :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                              ) %>

<% else %>

<%# lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login',
                     :help => _('Click here to enter your username and password and be recognized by the system.') %>

  <%= render :file => 'account/login' %>
  <%= thickbox_close_button _('Close') %>

<%= thickbox_inline_popup_link ''+ _('Login'), 'inlineLoginBox' %>

<% end %>


Added code to display topic name for reviewers.

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

<%= @header %> <%= @title %> for <%= @map.assignment.name %>

<% if !@map.contributor.nil?%>
  <%if @map.assignment.team_assignment?
        team_member = TeamsUser.find_by_team_id(@map.contributor).user_id
        topic_id = Participant.find_by_parent_id_and_user_id(@map.assignment.id,team_member).topic_id
  else%>
        <% topic_id = Participant.find(@map.contributor).topic_id%>
  <%end%>
  <%if !topic_id.nil?%>

You are reviewing <%=SignUpTopic.find(topic_id).topic_name%>

  <%end%>
  <%= render :partial => 'submitted_content/main', :locals => {:participant => @map.contributor, :stage =>  @assignment.get_current_stage()} %>

<% end %>
<%= @map.show_review() %>

<%= form_tag :action => @next_action, :id => @modified_object %>
<% i = 0
   @questions.each{
    | question | %>
    <%= question.txt %>

    <% if controller.action_name != 'new' %>
        <input id=responses_<%=i%>_comments name=responses[<%=i%>][comment] size=70 type=text value="<%= @review_scores[i].comments.gsub(/\"/,'"')%>" />
    <% else %>
        <input id=responses_<%=i%>_comments name=responses[<%=i%>][comment] size=70 type=text />
    <% end %>
    <% if question.true_false? %>
      <select id=responses_<%=i%>_score name=responses[<%=i%>][score]>
         <%if controller.action_name != 'new' %>
           <option value="<%=@min%>" <%if @min==@review_scores[i].score%>selected="selected"<%end%> ><%=@min%></option>
           <option value="<%=@max%>" <%if @max==@review_scores[i].score%>selected="selected"<%end%> ><%=@max%></option>
         <%else%>
           <option value="<%=@min%>"><%=@min%></option>
           <option value="<%=@max%>"><%=@max%></option>
         <%end%>
      </select>
  <% else %>
      <select id=responses_<%=i%>_score name=responses[<%=i%>][score]>
          <% for j in @min..@max %>
	        <%if controller.action_name != 'new' %>
            	<option value="<%=j%>"<% if j==@review_scores[i].score%> selected="selected"<%end%> ><%=j%></option>
            <%else%>
		        <option value="<%=j%>" ><%=j%></option>
	        <% end %>
          <% end %>
      </select>
  <% end %>
  <%if question.question_advices.size > 0%>
      <%= render :partial => 'advice', :locals => {:i => i, :advice_list => question.question_advices} %>
  <% else %>

  <% end %>

  <% i+=1
   } %>

	Additional Comments

	<textarea cols="70" rows="5" id=review_comments name=review[comments]><% if controller.action_name != 'new' and @response.additional_comment != nil %><%=@response.additional_comment.strip%><% end %></textarea>

<%= submit_tag "Save "+@title, :name=>"save" %>
<%= hidden_field_tag('return', @return) %>
</form>
<%= @map.show_feedback() %>
Back

<%= @header %> <%= @title %> for <%= @map.assignment.name %>

<% if !@map.contributor.nil? %>
  <% topic_id = Participant.find(@map.contributor).topic_id%>
  <%if !topic_id.nil?%>

You are reviewing <%=SignUpTopic.find(topic_id).topic_name%>

  <%end%>
  <%= render :partial => 'submitted_content/main', :locals => {:participant => @map.contributor, :stage =>  @assignment.get_current_stage()} %>

<% end %>
<%= @map.show_review() %>

<%= form_tag :action => @next_action, :id => @modified_object %>
<% i = 0
   @questions.each{
    | question | %>
    <%= question.txt %>

    <% if controller.action_name != 'new' %>
        <input id=responses_<%=i%>_comments name=responses[<%=i%>][comment] size=70 type=text value="<%= @review_scores[i].comments.gsub(/\"/,'"')%>" />
    <% else %>
        <input id=responses_<%=i%>_comments name=responses[<%=i%>][comment] size=70 type=text />
    <% end %>
    <% if question.true_false? %>
      <select id=responses_<%=i%>_score name=responses[<%=i%>][score]>
         <%if controller.action_name != 'new' %>
           <option value="<%=@min%>" <%if @min==@review_scores[i].score%>selected="selected"<%end%> ><%=@min%></option>
           <option value="<%=@max%>" <%if @max==@review_scores[i].score%>selected="selected"<%end%> ><%=@max%></option>
         <%else%>
           <option value="<%=@min%>"><%=@min%></option>
           <option value="<%=@max%>"><%=@max%></option>
         <%end%>
      </select>
  <% else %>
      <select id=responses_<%=i%>_score name=responses[<%=i%>][score]>
          <% for j in @min..@max %>
	        <%if controller.action_name != 'new' %>
            	<option value="<%=j%>"<% if j==@review_scores[i].score%> selected="selected"<%end%> ><%=j%></option>
            <%else%>
		        <option value="<%=j%>" ><%=j%></option>
	        <% end %>
          <% end %>
      </select>
  <% end %>
  <%if question.question_advices.size > 0%>
      <%= render :partial => 'advice', :locals => {:i => i, :advice_list => question.question_advices} %>
  <% else %>

  <% end %>

  <% i+=1
   } %>

	Additional Comments

	<textarea cols="70" rows="5" id=review_comments name=review[comments]><% if controller.action_name != 'new' and @response.additional_comment != nil %><%=@response.additional_comment.strip%><% end %></textarea>

<%= submit_tag "Save "+@title, :name=>"save" %>
<%= hidden_field_tag('return', @return) %>
</form>
<%= @map.show_feedback() %>
Back


path -> url

path -> url

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] != 'blog' and params[:action] != 'search' %>"><%= link_to _("Home"), frontpage_path %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("View requests"), request_list_successful_path %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default_url %>

        <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_path %>

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] != 'blog' and params[:action] != 'search' %>"><%= link_to _("Home"), frontpage_path %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("Make a request"), select_authority_path, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("View requests"), request_list_successful_path %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default_path %>

        <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_path %>


Estaba el nombre del archivo mal escrito.

<% @title = "Guía para solicitantes" %>

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

Guía para solicitantes

En esta sección te explicamos cómo pedir información a las instituciones públicas uruguayas. Parte de este texto esta basado en la guia de acceso a la información para periodistas elaborada por CAINFO y el Banco Mundial y la guia de tuderechoasaber.es. Léela también para aprender algunos consejos sobre cómo realizar peticiones efectivas.

Como pedir información

Localizar la institución pública adecuada

Consejos sobre las solicitudes

Respuestas y apelaciones

Moderación de las solicitudes

Como pedir información

1. ¿Tengo derecho a realizar a hacer un pedido?

 De acuerdo con el articulo 3 de la ley 18381, cualquier persona, sea uruguaya o extranjera, tiene derecho a pedir información en manos del Estado uruguayo. Asimismo, el solicitante no necesita justificar las razones por las cuales solicita la información, o especificar si su ocupación.

2. ¿Qué información puedo pedir?

Toda información, sin importar su formato, que esté en manos de los organismos públicos, puede ser pedida, por medio de una solicitud de información, con la única excepción de los límites expresados en la ley.

3. ¿Qué tipo de información puede ser negada por parte del Estado?

Toda información a la que no se pueda acceder, deberá ser aquella, que al ser
    publicada, pueda:

 Comprometer la seguridad publica o la defensa nacional;

 Menoscabar la conducción de las negociaciones o bien, de las relaciones internacionales;

Dañar la estabilidad financiera, económica o monetaria del país;

 Poner en riesgo la vida, la dignidad humana, la seguridad o la salud de cualquier persona;

Suponer una pérdida de ventajas competitivas para el sujeto obligado o pueda dañar el proceso de producción; y/o

Desproteger descubrimientos científicos, tecnológicos o culturales desarrollado o en poder de los sujetos obligados. Asimismo, tampoco podrá accederse a aquella información que haya sido entregada a los sujetos obligados en carácter confidencial, y/o los datos personales que requieran consentimiento antes de ser entregados. De todos modos, si se producen discrepancias entre el órgano de la administración, a quien ha sido solicitada la información, y el solicitante acerca del encuadre de dicha información en alguno de los criterios mencionados, se pueden recurrir a los mecanismos que establece la ley para apelar esta decisión.

4. ¿A quién puedo dirigirme?

Todos los organismos públicos, sean o no estatales, de la administración pública uruguaya (que incluye los 3 poderes del Estado: Ejecutivo, Legislativo y Judicial), tienen la obligación de brindar acceso a la información que obra en su poder, a toda persona que así lo solicite.

Seguimos construyendo quesabes.org, por lo que puede ocurrir que aún no tengamos algunos contactos o nos falte alguna institución. En este caso, por favor, avísanos e intentaremos encontrarla lo antes posible. Por otra parte, si puedes darnos la información sería estupendo. Así podríamos incluirla rápidamente en la web y otras personas se beneficiarán de tu aporte.

<%= link_to 'Pincha aquí para ver la lista completa de instituciones', list_public_bodies_default_path %>.

5. ¿Por qué debería solicitar información a las instituciones uruguayas?

El derecho de acceso a la información pública es una herramienta clave para el ejercicio y protección de otros derechos humanos fundamentales. Al tener acceso a información producida por el gobierno (sobre planes sociales, prestaciones de servicios públicos, etc.), los ciudadanos pueden conocer acerca de su accionar y, de esa manera, interiorizarse acerca de las políticas que pueden llegar a repercutir en su cotidianeidad, para luego tomar las medidas necesarias al respecto.

En una democracia sana, los ciudadanos deben poder saber lo que hacen sus gobiernos.

Para poder participar en la actividad pública: Para poder votar a nuestros representantes, necesitamos poder tener toda la información sobre quién toma las decisiones y en qué criterios se basan.

Para exigir mayor transparencia: Debemos demandar más transparencia. La mejor manera de exigir nuestro derecho es ejercerlo.

Para prevenir los casos de corrupción: El derecho de acceso a la información tiene un efecto disuasorio y preventivo. La posibilidad de poder solicitar cualquier información relacionada con la actividad pública hace que haya menos tentación de cometer actos corruptos, e incluso mejora y hace más eficiente el trabajo de las instituciones públicas.

6. ¿Qué hacer ante una denegatoria?

Si el organismo, al que se le ha solicitado la entrega de información en su poder, se niega a entregarla y el solicitante no concuerda con los motivos que se aducen para dicha denegatoria, el solicitante tiene dos opciones:
    - podrá acudir a la unidad de acceso a la información pública.
    - podrá entablar una acción judicial para que se garantice su derecho de acceder a la información pública la cual se realiza frente a los:
        - Los Juzgados Letrados de Primera Instancia en lo Contencioso Administrativo (si se tratase de organismos públicos estatales) o a los Juzgados Letrados de Primera Instancia en lo Civil (si se tratase de un organismo no estatal), si se encontrase en la Capital.
        - Los Juzgados de Primera Instancia a los que se haya asignado competencia en la materia, si se encontrase en el Interior del país.

7. ¿Qué características debe presentar la respuesta?

La respuesta deberá ser otorgada al solicitante en un plazo máximo de 20 días hábiles. El organismo público puede pedir una prórroga de otros 20 días hábiles, sólo por una razón fundada (razones excepcionales).
    Cumplido el plazo, el organismo deberá entregar la información al solicitante, o una respuesta especificando los motivos por los cuales se niega el acceso. Esta denegatoria deberá estar fundada en alguno de los criterios que se especifican en la ley 18381, articulos 8 y 9; asimismo, deberá estar firmada por la autoridad máxima del organismo que niega el acceso.
    Si el plazo se ha cumplido y el organismo no ha emitido una respuesta al respecto, el solicitante podrá acceder a la información, considerándose que el organismo se encuentra en falta si no hace entrega de dicha información.

8. Qué características debe poseer el pedido?

Para realizar un pedido de información, el solicitante no necesita patrimonio letrado, ni ninguna otra formalidad. Sugerimos que en el formulario de pedidos de quesabes.org indiques:
    -        la identidad del solicitante, junto con su domicilio y sus datos de contacto;
    -        la descripción de la información que se solicita en la forma mas detallada posible para facilitar si localización; y
    -        el soporte en el cual se prefiere obtener la información.

    Al ser el acceso a la información un procedimiento gratuito, el solicitante no deberá abonar ningún tipo de arancel.

Localizar la institución pública adecuada

9. ¿Qué pasa si no sé a qué organismo tengo que dirigirme?

Si tienes una pregunta pero no estás seguro del organismo público al que tienes que dirigirte para solicitar la información que necesitas, prueba lo siguiente:

Consulta o busca en quesabes.org solicitudes similares a la tuya.

Lee la descripción de cada organismo público para informarte de lo que hacen.

Cuando hayas encontrado el organismo que, en tu opinión, posee la información deseada, usa el enlace de la “página principal” para consultar su sitio web.

En el caso de que no hayas acudido al organismo correcto, puedes preguntarle dónde deberías enviar tu solicitud. Si lo saben, deberían informarte de ello.

Si todavía tienes dudas, por favor <a href="<%= help_contact_url %>">pónte en contacto con nosotros para que podamos ayudarte.

Consejos sobre las solicitudes

10. ¿Qué constituye una buena solicitud?

Por favor, incluye en tu solicitud la información necesaria para identificar fácilmente la información que estás pidiendo.

Los mensajes cortos y concisos hacen que sea más fácil para los servidores públicos identificar la información que pides, lo que significa que recibirás una respuesta más rápidamente.

Además, una petición bien formulada da menos razones a los servidores públicos para rechazarla por considerarla vaga o poco precisa. Sin embargo, no te preocupes por hacerla perfecta: en principio, en caso de que tu solicitud no sea clara, la institución a la que la envíes debería ponerse en contacto contigo para aclararla.

Por favor, no incluyas:

Argumentos basados en un tema o causa de tipo personal;

Declaraciones que puedan difamar o insultar a terceras personas;

Lenguaje ofensivo.

En caso contrario, nos veremos obligados a rechazar tu petición. Si fuera así, te lo haríamos saber y estaríamos siempre dispuestos a discutir caso por caso.

11. ¿Puedo pedir información sobre mí mismo?

No utilices quesabes.org para acceder a tu propia información personal. Si quieres información sobre ti mismo, utiliza preferiblemente las normas de Protección de Datos. Haz clic aquí para más información.

15. ¿Puedo enviar la misma solicitud a distintos órganos?

Puedes pedir la misma información a más de una institución, si bien es mejor empezar por la institución que tenga más posibilidades de tener la información que necesitas.

Si esa institución no cuenta con todos los documentos relevantes, puedes preguntar a quién deberías enviar tu solicitud.

Actualmente no existe un sistema automático para enviar las peticiones al resto de autoridades, tendrás que copiarlo y pegarlo a mano.

Respuestas y apelaciones

12. ¿Tendré que pagar por solicitar información?

Solicitar información en Uruguay es gratuito.

Recibir información en formato electrónico es gratuito. Es recomendable indicar que en qué formato se prefiere recibir la información.

En el caso en que se quiera recibir información impresa, la institución puede cobrar una tasa por realizar estas copias, estas tasas no deberían equivaler únicamente al precio real de la copia y no debería suponer un lucro para la institución.

13. ¿Cuándo obtendré una respuesta?

Según la legislación vigente, en general, las instituciones uruguayas tienen hasta 20 días habiles para contestar a las solicitudes de información.

En quesabes.org te avisaremos cuando hayan pasado 20 días, para que si quieres reclames tu información. Puedes llamar a la institución a la que realizaste la solicitud para preguntar en qué estado se encuentra tu petición.

No te preocupes por tener todo esto en la cabeza. El sistema también te avisará si pasa el plazo y no recibes respuesta.

Normalmente, al enviar tu solicitud, las instituciones deben darte algún tipo de recibo o e-mail de confirmación. Es recomendable exigir este tipo de documentos por si tuvieras que recurrir en un futuro.

14. ¿Puedo reutilizar la información recibida?

En general, la información en manos de las instituciones públicas españolas es “pública” en el sentido de que han sido creadas con el dinero de los contribuyentes. Por lo tanto tendrías que ser libre de utilizar los documentos que recibes y la información que contienen.

Sin embargo, existen normas que regulan la reutilización de la información del sector público, pero esto solo te concierne si has solicitado un gran volumen de información o una base de datos.

En caso de duda, especialmente si tienes pensado utilizar el material para propósitos comerciales, pregunta al organismo al que has solicitado la información o ponte en contacto con nosotros.

15. ¿Qué pasa si no recibo una respuesta?

Si no recibes una respuesta a tiempo, quesabes.org te enviará un correo.
    En principio el organismo obligado sólo podrá negarse a la entrega de la información a través de una resolución fundada, con indicación de la normativa que fundamenta la negativa del jerarca, en la que se establezca el carácter secreto, reservado o confidencial de la información solicitada. En caso de no responder en tiempo y forma, y de no haber mediado resolución de prórroga del plazo, el solicitante podrá tener acceso a la información que solicita.(fuente Unidad de Acceso a la Informacion Publica)

16. ¿Qué pasa si recibo una respuesta que no me satisface?

Hay cierto número de casos en los que puedes estar insatisfecho con la respuesta a tu solicitud:

Sólo has recibido parte de la información que solicitaste (pero no un rechazo formal), o la información que te ha sido facilitada es irrelevante o no responde completamente a tu pregunta – puedes calificar tu respuesta como “respuesta incompleta”;

Te han dicho que la información “no está en poder” del organismo al que enviaste tu solicitud;

Te han denegado el acceso a la información o a los documentos que has solicitado (mira también el punto sobre excepciones);

No has recibido ninguna respuesta (“silencio administrativo”).

Tendrás la posibilidad de “clasificar” tu respuesta según una lista de categorías (ver punto 15). Si no sabes cómo hacerlo te ayudaremos.

Si piensas que la respuesta es incorrecta, puedes contactar con la institución o interponer un recurso administrativo. Para más información sobre esto, haz clic aquí.

17. Clasificación de las respuestas

Las respuestas de las administraciones pueden ser muy diversas y según lo que nos contesten deberemos reaccionar de una u otra manera:

Información recibida: La institución ha contestado a tiempo y con la información solicitada.

Información recibida parcialmente: La institución ha contestado a tiempo pero no con toda la información solicitada porque considera una parte de esta información no debe ser pública.

No tiene la información: La institución contesta alegando que no tienen la información

Información incompleta: La institución ha contestado a tiempo pero no incluye toda la información solicitada.

Información inadecuada: La respuesta de la institución no corresponde a la información solicitada.

Silencio: Transcurrido el tiempo que tiene para contestar, la institución no ha contestado.

Esperando respuesta

Esperando una aclaración

Información denegada: la institución ha contestado denegando la información

Requiere revisión del administrador: Marca esta casilla si quieres que administrador revise la pregunta o la respuesta de esta solicitud.

Recurso interno: tras recibir una respuesta con la que no se está conforme se ha interpuesto un recurso administrativo.

En los casos en los que no quedemos satisfechos con la respuesta por falta de respuesta, por ser incompleta o inadecuada, recomendamos antes plantear un recurso, dirigirnos de nuevo a la institución que nos contesta para intentar recibir la información solicitada.

Moderación de las solicitudes

18. ¿Cómo se moderan las solicitudes y los comentarios?

Animamos a todo el mundo a realizar solicitudes y ofrecemos la posibilidad de que cualquier persona que esté registrada inserte comentarios en tus consultas.

Nuestro equipo consulta los contenidos con regularidad y nos reservamos el derecho de eliminar declaraciones poco apropiadas, como las de naturaleza ofensiva o potencialmente difamatoria. Si elimináramos alguno de tus comentarios, te lo haríamos saber para que podamos aclararlo y buscar una solución.

Del mismo modo, tú puedes denunciar contenidos inadecuados si los encuentras. Solo tiene que categorizar la solicitud como “Requiere revisión del administrador” y en seguida miraremos la solicitud, también puedes ponerte en contacto con nosotros y nos lo dejas saber.

19. Soy periodista o investigador, ¿es posible mantener la confidencialidad de mi solicitud hasta la publicación de mi artículo?

Quesabes.org está diseñado para realizar solicitudes públicas. Todas las respuestas que recibimos se publican automáticamente en la web, para que todo el mundo las pueda consultar.

Si eres un periodista, una ONG, investigador o simplemente deseas mantener el carácter confidencial de tu consulta hasta que hayas escrito tu artículo o por otras razones, tienes que enviar la solicitud de acceso directamente a la institución que creas conveniente, pero no a través de este sitio web.

20. He realizado solicitudes de las que he conseguido respuesta, ¿puedo compartirla en este sitio?

Lamentamos decirte que no es posible. Quesabes.org archiva las solicitudes realizadas a través del sitio web pero no pretende ser un archivo de todas las solicitudes de información. No se permite cargar otras solicitudes en esta página puesto que no podemos verificar si las respuestas proceden efectivamente de una institución pública.

Si deseas hacer pública una respuesta, tienes que volver a realizar la solicitud a través de quesabes.org.


Minor SEO tweak.

Minor SEO tweak.

    <a href="<%= R(Thoth::MainController) %>" rel="home">
      <%== Thoth::Config.site.name %>

      <%== Thoth::Config.site.desc %>

<%= A('Home',     :href => R(Thoth::MainController), :rel => 'home') %>

<%= A('Archives', :href => R(Thoth::MainController, :archive, 2)) %>

      <% if Thoth::Config.site.enable_comments %>

<%= A('Comments', :href => R(Thoth::CommentController)) %>

      <% end %>

  <%= render_template 'admin/toolbar' %>


Expand note.

Expand note.

<%= error_messages_for 'censor_rule' %>

Text (that you want to remove, case sensitive)

<%= text_field 'censor_rule', 'text', :size => 60  %>

Replacement (put it in [square brackets], e.g. [personal information removed]. applies to text in emails and HTML conversions of binaries; binaries themselves must stay the same length and the replacement is just a bunch of 'x's)

<%= text_field 'censor_rule', 'replacement', :size => 60  %>

Comment for this edit (put purpose of the rule, and why the change)

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

Rule is for request '<%=request_link(info_request)%>'
    <%= hidden_field 'censor_rule', 'info_request_id', { :value => info_request.id } %>

Warning and notes: This does replace text in binary files, but for
most formats only in a naive way. It works well on surprisingly many Word documents. Notably
it doesn't even do UCS-2 (unicode sometimes used in Word). There is also special code
which works on some PDFs. Please carefully check all attachments have
changed in the way you expect, and haven't become corrupted.

You may need to manually rebuild the search index afterwards. If you need to
redact things across a large number of requests, ask for code changes, should
be easy enough to add this per user or per authority.

<%= error_messages_for 'censor_rule' %>

Text (that you want to remove, case sensitive)

<%= text_field 'censor_rule', 'text', :size => 60  %>

Replacement (put it in [square brackets], e.g. [personal information removed]. applies only to text in emails; binaries must stay the same length and the replacement is just a bunch of 'x's)

<%= text_field 'censor_rule', 'replacement', :size => 60  %>

Comment for this edit (put purpose of the rule, and why the change)

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

Rule is for request '<%=request_link(info_request)%>'
    <%= hidden_field 'censor_rule', 'info_request_id', { :value => info_request.id } %>

Warning and notes: This does replace text in binary files, but for
most formats only in a naive way. It works well on surprisingly many Word documents. Notably
it doesn't even do UCS-2 (unicode sometimes used in Word). There is also special code
which works on some PDFs. Please carefully check all attachments have
changed in the way you expect, and haven't become corrupted.

You may need to manually rebuild the search index afterwards. If you need to
redact things across a large number of requests, ask for code changes, should
be easy enough to add this per user or per authority.


Make this clearer.

Make this clearer.

<% @title = "Statistics" %>

Statistics

Chart of requests (excluding backpaged)

<img src="<%= main_url("/foi-live-creation.png")%>">

State of requests (includes backpaged)

<% for state, count in @request_by_state %>

 <%=state %>	<%= count %>

<% end %>

Tracks by type

<% for state, count in @tracks_by_type %>

 <%=state %>	<%= count %>

<% end %>

Tracks by medium

<% for state, count in @tracks_by_medium %>

 <%=state %>	<%= count %>

<% end %>

<% @title = "Statistics" %>

Statistics

State of requests

<img src="<%= main_url("/foi-live-creation.png")%>">

<% for state, count in @request_by_state %>

 <%=state %>	<%= count %>

<% end %>

Tracks by type

<% for state, count in @tracks_by_type %>

 <%=state %>	<%= count %>

<% end %>

Tracks by medium

<% for state, count in @tracks_by_medium %>

 <%=state %>	<%= count %>

<% end %>


[Mezuro] fixing html syntax error

[Mezuro] fixing html syntax error

<% the_module = module_result.module %>
<% module_label = "#{the_module.name} (#{the_module.granularity})" %>

<%= _('Metric results for: ') + module_label %>

      Metric
      Value
      Weight
      Threshold

    <% module_result.metric_results.each do |metric_result|  %>
      <% range = metric_result.range %>
      <% if !range.nil? %>

          <a href="#" data-show=".<%= metric_result.metric.name.delete("() ")%>"><%= metric_result.metric.name %>
          <%= MezuroPlugin::Helpers::ContentViewerHelper.format_grade(metric_result.value) %>
          <%= metric_result.weight %>
          <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %>

        <tr class="<%= metric_result.metric.name.delete("() ")%>" style="display: none;">

            <div id='historical-<%= metric_result.metric.name.delete("() ") %>'>
              <a href="#" show-metric-history="<%= metric_result.metric.name.delete("() ") %>" data-module-name="<%= the_module.name %>" data-metric-name="<%= metric_result.metric.name.delete("() ") %>">
 Get Historical Values

            <%= range.comments.nil? ? '' : range.comments %>

      <% end %>
    <% end %>

        <a href="#" show-grade-history="<%= module_result.module.name %>" >

            <%= _('Grade:') %>
            <%= "%.02f" % module_result.grade %>


Allowing comments from webkit and IE

Allowing comments from webkit and IE

(ActionItem1642)

<%
  comment_form_id = 'comment_form'+ rand(9999).to_s
%>

<% focus_on = logged_in? ? 'title' : 'name' %>

<%= error_messages_for :comment %>

<% @form_div ||= 'closed' %>

<div
  class="post_comment_box <%= @form_div %>"
  onclick="f=$('<%= comment_form_id %>');
           this.className = this.className.replace(/closed/,'opened');
           f.commit.focus(); f['comment[<%= focus_on %>]'].focus();
           this.onclick=null">

<%= content_tag('a', '', :name => 'comment_form') + _('Post a comment') %>

<% form_tag( url_for(@page.view_url.merge({:only_path => true})), { :id => comment_form_id } ) do %>
  <%= icaptcha_field() %>
  <%= hidden_field_tag(:confirm, 'false') %>

  <%= required_fields_message %>

  <% unless logged_in? %>

    <%= required labelled_form_field(_('Name'), text_field(:comment, :name)) %>
    <%= required labelled_form_field(_('e-mail'), text_field(:comment, :email)) %>

    <%= _('If you are a registered user, you can login and be automatically recognized.') %>

  <% end %>

  <%= required labelled_form_field(_('Title'), text_field(:comment, :title)) %>
  <%= required labelled_form_field(_('Enter your comment'), text_area(:comment, :body, :rows => 5)) %>
  <% button_bar do %>
    <%= submit_button('add', _('Post comment'), :onclick => "$('confirm').value = 'true'; this.disabled = true; this.form.submit(); return true;") %>
  <% end %>
<% end %>

<%
  comment_form_id = 'comment_form'+ rand(9999).to_s
%>

<% focus_on = logged_in? ? 'title' : 'name' %>

<%= error_messages_for :comment %>

<% @form_div ||= 'closed' %>

<div
  class="post_comment_box <%= @form_div %>"
  onclick="f=$('<%= comment_form_id %>');
           this.className = this.className.replace(/closed/,'opened');
           f.commit.focus(); f['comment[<%= focus_on %>]'].focus();
           this.onclick=null">

<%= content_tag('a', '', :name => 'comment_form') + _('Post a comment') %>

<% form_tag( url_for(@page.view_url.merge({:only_path => true})), { :id => comment_form_id } ) do %>
  <%= icaptcha_field() %>
  <%= hidden_field_tag(:confirm, 'false') %>

  <%= required_fields_message %>

  <% unless logged_in? %>

    <%= required labelled_form_field(_('Name'), text_field(:comment, :name)) %>
    <%= required labelled_form_field(_('e-mail'), text_field(:comment, :email)) %>

    <%= _('If you are a registered user, you can login and be automatically recognized.') %>

  <% end %>

  <%= required labelled_form_field(_('Title'), text_field(:comment, :title)) %>
  <%= required labelled_form_field(_('Enter your comment'), text_area(:comment, :body, :rows => 5)) %>
  <% button_bar do %>
    <%= submit_button('add', _('Post comment'), :onclick => "$('confirm').value = 'true'; this.disabled = true") %>
  <% end %>
<% end %>


arreglados un par de bugs de la lista de bugs

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

	<% rounded(:class => "tips") do %>
Users invited to the Space

<% for email in @users_invited%>
<%= email%>

<%end%>

<%end%>
<% rounded(:class => "tips") do %>
Users added to the Space (they are already register in the application)

<% for email in @users_added%>
<%= email%>

<%end%>
<%end%>
<% rounded(:class => "tips") do %>
Users not added (they are already in the space)

<% for email in @users_not_added%>
<%= email%>

<%end%>
<%end%>
<% rounded(:class => "tips") do %>
Invalid Emails

<% for email in @emails_invalid%>
<%= email%>

<%end%>
<%end%>
<%= link_to 'Back', space_users_path(@space) %>

<%= render :partial =>'shared/sidebar_users'%>


Added video to front page

Added video to front page

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

You have the right to ask European Union bodies for information,

        they are legally obliged to respond

About
AsktheEU.org

Find out who we are
and how this website works

            <%= link_to _('More'), help_about_url %>

Make
Your Request

Ask a European Union body for information. (You will be asked to sign up/sign in first.)

            <%= link_to _("Request"), body_index_path %>

Search
Requests

See what others are
 asking and the answers they are getting.

            <%= link_to _("Search"), request_list_successful_url %>

<%= link_to "EU institutions", body_index_path %>

                <a href="<%= body_index_path %>">

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

Follow us

Video

<a href="<%= blog_url %>">News

            <% for item in @blog_items[0..2]: %>

<%= simple_date(Time.parse(item['pubDate'][0])) %>

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

            <% end %>

<a href="<%= blog_url %>">View all news

<% end %>


Ordering by version is better than by id.

<% @title = "Public authority - " + h(@public_body.name) %>

<%=@title%>

<%
   columns = PublicBody.content_columns
   columns.delete_if {|c| ['last_edit_comment'].include?(c.name)}

   for column in columns %>
  <%= column.human_name %>:
  <% if column.name == 'home_page' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), @public_body.send(column.name))  %>
  <% elsif column.name == 'request_email' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), "mailto:" + @public_body.send(column.name))  %>
  <% else %>
      <%=h @public_body.send(column.name) %>
  <% end %>

<% end %>
Calculated home page:
<% if !@public_body.calculated_home_page.nil? %>
    <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
<% else %>
    *unknown*
<% end %>

Tags: <%= @public_body.public_body_tags.map { |t|
        link_to(h(t.name), list_public_bodies_url(:tag => t.name)) +
        ' (admin)' }.join(' ') %>

    <%= link_to 'Public page', main_url(public_body_url(@public_body)) %>
    | <%= link_to 'Edit', '../edit/' + @public_body.id.to_s %>

History

<%
    history_columns = PublicBody.content_columns
    history_columns.delete_if {|c| ['created_at', 'updated_at', 'first_letter'].include?(c.name)}
    for column in history_columns %>
  <%= column.human_name %>
<% end %>
Updated at

<%# There may be an option to versions() to specify order, but I can't find it. TB 2009-03-09 %>
<% for historic_public_body in @public_body.versions.sort { |a,b| b.version <=> a.version } %>
      <tr class="<%= cycle('odd', 'even') %>">
    <% for column in history_columns %>
      <%
        value = h(historic_public_body.send(column.name))
        if column.name == 'last_edit_comment'
            value = historic_public_body.last_edit_comment_for_html_display
        end
        # Highlight entries which have changed since previous version
        changed = (not ['version', 'last_edit_editor', 'last_edit_comment'].include?(column.name)) && ((historic_public_body.send(column.name) != @public_body.versions[historic_public_body.version - 2].send(column.name)) || (historic_public_body.version == 1)) %>
      <td <%= changed ? ' class="entry_changed" ': '' %> >
      <%=value%>

    <% end %>
      <%=h historic_public_body.updated_at %>

<% end %>

Requests

<%= render :partial => 'admin_request/some_requests', :locals => { :info_requests => @public_body.info_requests } %>

Track things

<%= render :partial => 'admin_track/some_tracks', :locals => { :track_things => @public_body.track_things } %>

<% @title = "Public authority - " + h(@public_body.name) %>

<%=@title%>

<%
   columns = PublicBody.content_columns
   columns.delete_if {|c| ['last_edit_comment'].include?(c.name)}

   for column in columns %>
  <%= column.human_name %>:
  <% if column.name == 'home_page' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), @public_body.send(column.name))  %>
  <% elsif column.name == 'request_email' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), "mailto:" + @public_body.send(column.name))  %>
  <% else %>
      <%=h @public_body.send(column.name) %>
  <% end %>

<% end %>
Calculated home page:
<% if !@public_body.calculated_home_page.nil? %>
    <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
<% else %>
    *unknown*
<% end %>

Tags: <%= @public_body.public_body_tags.map { |t|
        link_to(h(t.name), list_public_bodies_url(:tag => t.name)) +
        ' (admin)' }.join(' ') %>

    <%= link_to 'Public page', main_url(public_body_url(@public_body)) %>
    | <%= link_to 'Edit', '../edit/' + @public_body.id.to_s %>

History

<%
    history_columns = PublicBody.content_columns
    history_columns.delete_if {|c| ['created_at', 'updated_at', 'first_letter'].include?(c.name)}
    for column in history_columns %>
  <%= column.human_name %>
<% end %>
Updated at

<% for historic_public_body in @public_body.versions.sort { |a,b| b.id <=> a.id } %>
      <tr class="<%= cycle('odd', 'even') %>">
    <% for column in history_columns %>
      <%
        value = h(historic_public_body.send(column.name))
        if column.name == 'last_edit_comment'
            value = historic_public_body.last_edit_comment_for_html_display
        end
        # Highlight entries which have changed since previous version
        changed = (not ['version', 'last_edit_editor', 'last_edit_comment'].include?(column.name)) && ((historic_public_body.send(column.name) != @public_body.versions[historic_public_body.version - 2].send(column.name)) || (historic_public_body.version == 1)) %>
      <td <%= changed ? ' class="entry_changed" ': '' %> >
      <%=value%>

    <% end %>
      <%=h historic_public_body.updated_at %>

<% end %>

Requests

<%= render :partial => 'admin_request/some_requests', :locals => { :info_requests => @public_body.info_requests } %>

Track things

<%= render :partial => 'admin_track/some_tracks', :locals => { :track_things => @public_body.track_things } %>


made changes to correct error

made changes to correct error

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

Scores for <%= Assignment.find(@assignment_id).name %>

<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>
<%
    review_no = 1
	grade = 0
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
    for review_map in @review_mapping
        for review in review_map.reviews%>
			Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %><a href="#1" onClick="toggleVis('<%=review_no %>');">
            	<span class="inline" id="<%=review_no %>_show">View
              	<span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

			<div id="<%=review_no%>_myDiv" style="display:none">

                Question
                Score
				Comment

             <%
             total = 0
             for review_score in review.review_scores
                #if (!Question.find(review_score.question_id).true_false)
                    total += review_score.score
                #end%>

                    <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

            <%end
			  grade += total%>

Total	<%=total%>  	Score: <%=total*100/@sum_of_max%>%

           Additional comment : <%=review.additional_comment%>

           <% @mapping = ReviewMapping.find(review_map.id) %>
           <% @assgt_id = @mapping.assignment_id %>
		   <% @assignment = Assignment.find_by_id (@assgt_id)
			if @assignment.team_assignment
				@team_id = @mapping.team_id
			else
				@author_id = @mapping.author_id
			end
			%>

		     <%if(ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", review.id, @assignment_id]))%>

 View feedback : <%= link_to "View", {:controller =>'review_feedback', :action=>'view_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

 Edit feedback : <%= link_to "Edit", {:controller =>'review_feedback', :action =>'edit_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

		     <% else %>

Give feedback to reviewer:<%= link_to "Begin", {:controller => 'review_feedback', :action => 'new_feedback',:id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

				      <% end
					%>
		   <%review_no +=1
        end
	end%>
    <% if review_no-1 > 0 %>

Grade

		Average (of all reviews) = <%=grade/(review_no-1)%>
		<%if @final_penalty !=0%>

Penalty units= <%=@penalty_units%> Penalty per unit=<%=@late_policy.penalty_per_unit%> Maximum penalty=<%=@late_policy.max_penalty%>

		<%end%>
		  Final grade = <%=(grade/(review_no-1))*100/@sum_of_max-@final_penalty%>%

   	<%else%>
		<%if @assignment.wiki_type_id == 2 %>
			<%if @assignment.team_assignment %>
				There are no reviews of your work yet.
			<%else%>
				<%if review_mediawiki @assignment.directory_path, _time, @user_name == ''%>
					There are no reviews of your work because it seems that you have not submitted anything for this assignment.
				<%else%>
					There are no reviews of your work yet.
				<%end%>
			<%end%>
		<%else%>
			There are no reviews on your work yet.
		<%end%>
	<%end%>
<%if(@review_of_review_mappings.size > 0)%>

Reviews of reviews

  <%ror_no = 1%>
   <% for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id) %>
  <% if (@ror)%>

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>
  <% end %>
  <%ror_no += 1
  	end
  end%>

Scores for <%= Assignment.find(@assignment_id).name %>

<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>
<%
    review_no = 1
	grade = 0
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
    for review_map in @review_mapping
        for review in review_map.reviews%>
			Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %><a href="#1" onClick="toggleVis('<%=review_no %>');">
            	<span class="inline" id="<%=review_no %>_show">View
              	<span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

			<div id="<%=review_no%>_myDiv" style="display:none">

                Question
                Score
				Comment

             <%
             total = 0
             for review_score in review.review_scores
                #if (!Question.find(review_score.question_id).true_false)
                    total += review_score.score
                #end%>

                    <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

            <%end
			  grade += total%>

Total	<%=total%>  	Score: <%=total*100/@sum_of_max%>%

           Additional comment : <%=review.additional_comment%>

           <% @mapping = ReviewMapping.find(review_map.id) %>
           <% @assgt_id = @mapping.assignment_id %>
		   <% @assignment = Assignment.find_by_id (@assigt_id)
			if @assignment.team_assignment
				@team_id = @mapping.team_id
			else
				@author_id = @mapping.author_id
			end
			%>

		     <%if(ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", review.id, @assignment_id]))%>

 View feedback : <%= link_to "View", {:controller =>'review_feedback', :action=>'view_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

 Edit feedback : <%= link_to "Edit", {:controller =>'review_feedback', :action =>'edit_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

		     <% else %>

Give feedback to reviewer:<%= link_to "Begin", {:controller => 'review_feedback', :action => 'new_feedback',:id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

				      <% end
					%>
		   <%review_no +=1
        end
	end%>
    <% if review_no-1 > 0 %>

Grade

		Average (of all reviews) = <%=grade/(review_no-1)%>
		<%if @final_penalty !=0%>

Penalty units= <%=@penalty_units%> Penalty per unit=<%=@late_policy.penalty_per_unit%> Maximum penalty=<%=@late_policy.max_penalty%>

		<%end%>
		  Final grade = <%=(grade/(review_no-1))*100/@sum_of_max-@final_penalty%>%

   	<%else%>
		<%if @assignment.wiki_type_id == 2 %>
			<%if @assignment.team_assignment %>
				There are no reviews of your work yet.
			<%else%>
				<%if review_mediawiki @assignment.directory_path, _time, @user_name == ''%>
					There are no reviews of your work because it seems that you have not submitted anything for this assignment.
				<%else%>
					There are no reviews of your work yet.
				<%end%>
			<%end%>
		<%else%>
			There are no reviews on your work yet.
		<%end%>
	<%end%>
<%if(@review_of_review_mappings.size > 0)%>

Reviews of reviews

  <%ror_no = 1%>
   <% for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id) %>
  <% if (@ror)%>

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>
  <% end %>
  <%ror_no += 1
  	end
  end%>


changes made for teams to give reviewer feedback

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

Scores for <%= Assignment.find(@assignment_id).name %>

<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>
<%
    review_no = 1
	grade = 0
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
    for review_map in @review_mapping
        for review in review_map.reviews%>
			Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %><a href="#1" onClick="toggleVis('<%=review_no %>');">
            	<span class="inline" id="<%=review_no %>_show">View
              	<span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

			<div id="<%=review_no%>_myDiv" style="display:none">

                Question
                Score
				Comment

             <%
             total = 0
             for review_score in review.review_scores
                #if (!Question.find(review_score.question_id).true_false)
                    total += review_score.score
                #end%>

                    <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

            <%end
			  grade += total%>

Total	<%=total%>  	Score: <%=total*100/@sum_of_max%>%

           Additional comment : <%=review.additional_comment%>

           <% @mapping = ReviewMapping.find(review_map.id) %>
           <% @assgt_id = @mapping.assignment_id %>
		   <% @assignment = Assignment.find_by_id (@assigt_id)
			if @assignment.team_assignment
				@team_id = @mapping.team_id
			else
				@author_id = @mapping.author_id
			end
			%>

		     <%if(ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", review.id, @assignment_id]))%>

 View feedback : <%= link_to "View", {:controller =>'review_feedback', :action=>'view_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

 Edit feedback : <%= link_to "Edit", {:controller =>'review_feedback', :action =>'edit_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

		     <% else %>

Give feedback to reviewer:<%= link_to "Begin", {:controller => 'review_feedback', :action => 'new_feedback',:id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id, :id4=>@team_id} %>

				      <% end
					%>
		   <%review_no +=1
        end
	end%>
    <% if review_no-1 > 0 %>

Grade

		Average (of all reviews) = <%=grade/(review_no-1)%>
		<%if @final_penalty !=0%>

Penalty units= <%=@penalty_units%> Penalty per unit=<%=@late_policy.penalty_per_unit%> Maximum penalty=<%=@late_policy.max_penalty%>

		<%end%>
		  Final grade = <%=(grade/(review_no-1))*100/@sum_of_max-@final_penalty%>%

   	<%else%>
		<%if @assignment.wiki_type_id == 2 %>
			<%if @assignment.team_assignment %>
				There are no reviews of your work yet.
			<%else%>
				<%if review_mediawiki @assignment.directory_path, _time, @user_name == ''%>
					There are no reviews of your work because it seems that you have not submitted anything for this assignment.
				<%else%>
					There are no reviews of your work yet.
				<%end%>
			<%end%>
		<%else%>
			There are no reviews on your work yet.
		<%end%>
	<%end%>
<%if(@review_of_review_mappings.size > 0)%>

Reviews of reviews

  <%ror_no = 1%>
   <% for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id) %>
  <% if (@ror)%>

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>
  <% end %>
  <%ror_no += 1
  	end
  end%>

Scores for <%= Assignment.find(@assignment_id).name %>

<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>
<%
    review_no = 1
	grade = 0
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
    for review_map in @review_mapping
        for review in review_map.reviews%>
			Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %><a href="#1" onClick="toggleVis('<%=review_no %>');">
            	<span class="inline" id="<%=review_no %>_show">View
              	<span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

			<div id="<%=review_no%>_myDiv" style="display:none">

                Question
                Score
				Comment

             <%
             total = 0
             for review_score in review.review_scores
                #if (!Question.find(review_score.question_id).true_false)
                    total += review_score.score
                #end%>

                    <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

            <%end
			  grade += total%>

Total	<%=total%>  	Score: <%=total*100/@sum_of_max%>%

           Additional comment : <%=review.additional_comment%>

           <% @mapping = ReviewMapping.find(review_map.id) %>
           <% @assgt_id = @mapping.assignment_id %>
           <% @author_id = @mapping.author_id %>

		     <%if(ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", review.id, @assignment_id]))%>

 View feedback : <%= link_to "View", {:controller =>'review_feedback', :action=>'view_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id} %>

 Edit feedback : <%= link_to "Edit", {:controller =>'review_feedback', :action =>'edit_feedback', :id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id} %>

		     <% else %>

Give feedback to reviewer:<%= link_to "Begin", {:controller => 'review_feedback', :action => 'new_feedback',:id1 =>@assgt_id, :id2 =>@author_id, :id3=>review.id} %>

				      <% end
					%>
		   <%review_no +=1
        end
	end%>
    <% if review_no-1 > 0 %>

Grade

		Average (of all reviews) = <%=grade/(review_no-1)%>
		<%if @final_penalty !=0%>

Penalty units= <%=@penalty_units%> Penalty per unit=<%=@late_policy.penalty_per_unit%> Maximum penalty=<%=@late_policy.max_penalty%>

		<%end%>
		  Final grade = <%=(grade/(review_no-1))*100/@sum_of_max-@final_penalty%>%

   	<%else%>
		<%if @assignment.wiki_type_id == 2 %>
			<%if @assignment.team_assignment %>
				There are no reviews of your work yet.
			<%else%>
				<%if review_mediawiki @assignment.directory_path, _time, @user_name == ''%>
					There are no reviews of your work because it seems that you have not submitted anything for this assignment.
				<%else%>
					There are no reviews of your work yet.
				<%end%>
			<%end%>
		<%else%>
			There are no reviews on your work yet.
		<%end%>
	<%end%>
<%if(@review_of_review_mappings.size > 0)%>

Reviews of reviews

  <%ror_no = 1%>
   <% for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id) %>
  <% if (@ror)%>

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>
  <% end %>
  <%ror_no += 1
  	end
  end%>


Reduce messages for /bodies searches (ones from front page where you are finding body) in the case where you are on the second page,

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% if @query.nil? %>
    <% @title = "Search Freedom of Information requests, public authorities and users" %>

<%=@title%>

<% elsif @total_hits == 0 %>
    <% @title = "Nothing found for '" + h(@query) + "'" %>
<% else %>
    <% @title = "Results page " + @page.to_s %>
<% end%>

<% if @bodies && (@page == 1 || @xapian_bodies.results.size > 0) %>

Next, select the public authority you'd like to make the request from.

Can't find it?  <%= link_to "Browse all", list_public_bodies_default %> or
            ask us to add it.

<% end %>

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

       <%= text_field_tag 'query', @query, { :size => 40 } %>
       <%= hidden_field_tag 'sortby', @sortby %>
       <% if @bodies %>
           <%= hidden_field_tag 'bodies', 1 %>
       <% end %>
       <%= submit_tag "Search" %>
       <% if not @show_tips %>
             Advanced tips
       <% end %>

<% end %>

<% if !@query.nil? %>

    <%=link_to_unless @sortby.nil?, "Show most relevant results first", search_url(@query, nil) %>
    |
    <%=link_to_unless @sortby == 'newest', "Newest results first", search_url(@query, 'newest') %>
    <% if @sortby == 'described' %>
    | Recently described results first
    <% end %>

<% end %>

<% if @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

No public authorities found

    <% if @spelling_correction %>

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @postfix) %>

    <% end %>

<%=link_to "Browse all", list_public_bodies_default %> or ask us to add one.

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>
    <% if @spelling_correction %>

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @postfix) %>

    <% end %>

    <% if (!@bodies || @xapian_requests.results.size == 0) && @track_thing && (@xapian_bodies.results.size > 0 || @xapian_users.results.size > 0 || @total_hits == 0)%>
        <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
    <% end %>

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

<%= "Public authorities " + ((@page-1)*@bodies_per_page+1).to_s + "-" + [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s + " of " + @xapian_bodies.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_bodies.results %>
            <%= render :partial => 'body/body_listing_single', :locals => { :public_body => result[:model] }  %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
    <% end %>

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

<%= "People " + ((@page-1)*@users_per_page+1).to_s + "-" + [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s + " of " + @xapian_users.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_users.results %>
            <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
    <% end %>

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

<%= "FOI requests " + ((@page-1)*@requests_per_page+1).to_s + "-" + [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s + " of " + @xapian_requests.matches_estimated.to_s + " for '" + h(@query) + "'" %>

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

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

        <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
        <% if @track_thing %>

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

<% if @show_tips %>

Search tips

Enter words that you want to find separated by spaces, e.g. climbing lane

Use OR (in capital letters) where you don't mind which word,  e.g. commons OR lords

Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"

variety: with value sent, followup_sent, response, comment, authority or user to select type of thing to search for.

status: to select based on the status or historical status of the request, see table below.

requested_from:home_office to search requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL.

requested_by:julian_todd to search requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL.

commented_by:tony_bowden to search annotations made by <%= link_to "Tony Bowden", show_user_url(:url_name => 'tony_bowden') %>, typing the name as in the URL.

request: to restrict to a specific request, typing the title as in the URL.

filetype:pdf to find all responses with PDF attachments. Or try these: <%= IncomingMessage.get_all_file_extentions%>.

Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.

Read about advanced search operators, such as proximity and wildcards.

status:waiting_response	 Waiting for the public authority to reply

status:not_held	 The public authority does not have the information requested

status:rejected	 The request was rejected by the public authority

status:partially_successful	 Some of the information requested has been received

status:successful	 All of the information requested has been received

status:waiting_clarification	 The public authority would like part of the request explained

status:waiting_classification	 A new response has arrived, but it hasn't been categorised yet

status:requires_admin	 A strange reponse, required attention by the WhatDoTheyKnow team

<% end %>

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% if @query.nil? %>
    <% @title = "Search Freedom of Information requests, public authorities and users" %>

<%=@title%>

<% elsif @total_hits == 0 %>
    <% @title = "Nothing found for '" + h(@query) + "'" %>
<% else %>
    <% @title = "Results page " + @page.to_s %>
<% end%>

<% if @bodies %>

Next, select the public authority you'd like to make the request from.

Can't find it?  <%= link_to "Browse all", list_public_bodies_default %> or
            ask us to add it.

<% end %>

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

       <%= text_field_tag 'query', @query, { :size => 40 } %>
       <%= hidden_field_tag 'sortby', @sortby %>
       <% if @bodies %>
           <%= hidden_field_tag 'bodies', 1 %>
       <% end %>
       <%= submit_tag "Search" %>
       <% if not @show_tips %>
             Advanced tips
       <% end %>

<% end %>

<% if not @query.nil? %>

    <%=link_to_unless @sortby.nil?, "Show most relevant results first", search_url(@query, nil) %>
    |
    <%=link_to_unless @sortby == 'newest', "Newest results first", search_url(@query, 'newest') %>
    <% if @sortby == 'described' %>
    | Recently described results first
    <% end %>

<% end %>

<% if @bodies && !@query.nil? && @xapian_bodies.results.size == 0 %>

No public authorities found

    <% if @spelling_correction %>

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @postfix) %>

    <% end %>

<%=link_to "Browse all", list_public_bodies_default %> or ask us to add one.

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>
    <% if @spelling_correction %>

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @postfix) %>

    <% end %>

    <% if (!@bodies || @xapian_requests.results.size == 0) && @track_thing && (@xapian_bodies.results.size > 0 || @xapian_users.results.size > 0 || @total_hits == 0)%>
        <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
    <% end %>

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

<%= "Public authorities " + ((@page-1)*@bodies_per_page+1).to_s + "-" + [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s + " of " + @xapian_bodies.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_bodies.results %>
            <%= render :partial => 'body/body_listing_single', :locals => { :public_body => result[:model] }  %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
    <% end %>

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

<%= "People " + ((@page-1)*@users_per_page+1).to_s + "-" + [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s + " of " + @xapian_users.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_users.results %>
            <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
    <% end %>

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

<%= "FOI requests " + ((@page-1)*@requests_per_page+1).to_s + "-" + [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s + " of " + @xapian_requests.matches_estimated.to_s + " for '" + h(@query) + "'" %>

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

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

        <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
        <% if @track_thing %>

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

<% if @show_tips %>

Search tips

Enter words that you want to find separated by spaces, e.g. climbing lane

Use OR (in capital letters) where you don't mind which word,  e.g. commons OR lords

Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"

variety: with value sent, followup_sent, response, comment, authority or user to select type of thing to search for.

status: to select based on the status or historical status of the request, see table below.

requested_from:home_office to search requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL.

requested_by:julian_todd to search requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL.

commented_by:tony_bowden to search annotations made by <%= link_to "Tony Bowden", show_user_url(:url_name => 'tony_bowden') %>, typing the name as in the URL.

request: to restrict to a specific request, typing the title as in the URL.

filetype:pdf to find all responses with PDF attachments. Or try these: <%= IncomingMessage.get_all_file_extentions%>.

Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.

Read about advanced search operators, such as proximity and wildcards.

status:waiting_response	 Waiting for the public authority to reply

status:not_held	 The public authority does not have the information requested

status:rejected	 The request was rejected by the public authority

status:partially_successful	 Some of the information requested has been received

status:successful	 All of the information requested has been received

status:waiting_clarification	 The public authority would like part of the request explained

status:waiting_classification	 A new response has arrived, but it hasn't been categorised yet

status:requires_admin	 A strange reponse, required attention by the WhatDoTheyKnow team

<% end %>


Don't really need the reference to public body id I don't think.

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Is <%= @info_request.public_body.request_email%> the wrong address for Freedom
of Information requests to <%= @info_request.public_body.name%>? If so please
let us know by emailing <%=@contact_email%>. We'll make sure future ones go to
the right place.
-------------------------------------------------------------------

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Is <%= @info_request.public_body.request_email%> the wrong address for Freedom
of Information requests to <%= @info_request.public_body.name%>? If so please
let us know by emailing <%=@contact_email%> quoting reference BODY<%= @info_request.public_body.id%>.
We'll make sure future ones go to the right place.
-------------------------------------------------------------------


Fix escaping of raw email display in admin interface

<% @title = 'Incoming message ' + @raw_email.incoming_message.id.to_s + ' of FOI request \'' + h(@raw_email.incoming_message.info_request.title) + "'" %>

Incoming message <%=@raw_email.incoming_message.id.to_s %>

    FOI request: <%= request_both_links(@raw_email.incoming_message.info_request) %>
    <% if @holding_pen %>

This is in the holding pen because: <%= @rejected_reason %>
        <% if @public_bodies.size > 0 %>

Guessed authority:
            <% for public_body in @public_bodies %>
                <%=public_body_both_links(public_body)%>
            <% end %>
            (based on From: email domain)
        <% end %>
        <% if @info_requests.size > 0 %>

Guessed request:
            <% for info_request in @info_requests %>
                <%=request_both_links(info_request)%>
            <% end %>
            (based on id, not hash, in To/Cc email)
        <% end %>
    <% end %>

Actions

    <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => @raw_email.incoming_message } %>

Raw email

<%= link_to "Download", "../download_raw_email/" + @raw_email.id.to_s %>

<%= h(@raw_email.data).gsub(/\n/, '
').html_safe %>

<% @title = 'Incoming message ' + @raw_email.incoming_message.id.to_s + ' of FOI request \'' + h(@raw_email.incoming_message.info_request.title) + "'" %>

Incoming message <%=@raw_email.incoming_message.id.to_s %>

    FOI request: <%= request_both_links(@raw_email.incoming_message.info_request) %>
    <% if @holding_pen %>

This is in the holding pen because: <%= @rejected_reason %>
        <% if @public_bodies.size > 0 %>

Guessed authority:
            <% for public_body in @public_bodies %>
                <%=public_body_both_links(public_body)%>
            <% end %>
            (based on From: email domain)
        <% end %>
        <% if @info_requests.size > 0 %>

Guessed request:
            <% for info_request in @info_requests %>
                <%=request_both_links(info_request)%>
            <% end %>
            (based on id, not hash, in To/Cc email)
        <% end %>
    <% end %>

Actions

    <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => @raw_email.incoming_message } %>

Raw email

<%= link_to "Download", "../download_raw_email/" + @raw_email.id.to_s %>

<%=h(@raw_email.data).gsub(/\n/, '
') %>


WDTK-46 Copy alaveteli view across to theme

The law, the Ministry of Justice and the Information Commissioner all say that an email is sufficient (<a href="<%= help_page_url %>#full_address">more details).

At the bottom of this page, write a reply to the authority explaining this to them.

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


final grade report

final grade report

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

Final Grade Report for Studen1: Assignment1

Assignment submissions
	(toggle table)

Assignment	column2	column3

http://www.assign1.com	cell2	cell3

assign1.doc	cell2	cell3

Assignment peer reviews
	(toggle table)

Rubric

q1:	Please rate grammer on a scale of 1-5

q2:	Please rate readability on a scale of 1-5

q3:	Please rate organization on a scale of 1-5	</tr

q4:	Please rate information on a scale of 1-5

q5:	Please rate layout on a scale of 1-5

Reviewer	q1	q2	q3	q4	q5	Total Score

John	4	5	3	4	3	72%	view review

Ellen	5	5	4	4	5	86%	view review

Richard	4	3	4	4	4	79%	view review

Peer review feedback
	(toggle table)

Reviewer	Feedback

John	Ruby is a dynamic, reflective, general purpose object-oriented programming language. Originating in Japan in the mid 1990s, Ruby was initially developed and designed by Yukihiro "Matz" Matsumoto and combines syntax inspired by Perl with Smalltalk-like object-oriented features.

Ellen	Ruby supports multiple programming paradigms (including functional, object oriented and imperative), and features a dynamic type system and automatic memory management; it is therefore similar in varying respects to Python, Perl, Lisp, Dylan, and CLU.

Richard	In its current, official implementation, written in C, Ruby is a single-pass interpreted language. As of 2008, there are a number of alternative implementations of the Ruby language, including Rubinius, JRuby and IronRuby, each of which takes a different approach, with JRuby providing just-in-time compilation functionality.

Joe	The language was created by Yukihiro Matsumoto, who started working on Ruby on February 24, 1993, and released it to the public in 1995. "Ruby" was named as a gemstone because of a joke within Matsumoto's circle of friends alluding to the name of the Perl programming language [1].

Final grade assessment

Student Comments: 	<textarea rows="2" cols="50"></textarea>

Private Comments: 	<textarea rows="2" cols="50"></textarea>

Final Grade: 	<input type=text size=3></input>

<input type=button value="Submit"

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


used to be called summary_page

used to be called summary_page

Summary page for <%= session[:person].name %>

<% if @mycages.count > 0 %>

Your cages

<%= render_partial 'cages/cage_list', @mycages %>
<% else %>

You have no cages

<% end %>

<% if @mymedicalproblems.length > 0 %>

Current Medical Problems For Which You Are Responsible

Band
Medical Problem
User
Date Opened
<% if @list_all %>
Date Closed
<% else %>

<% end %>

Treatment
<% @show_bat = true %>
<% for cage in @mycages %>
<% for bat in cage.bats %>
<%= render_partial 'medical_problems/medical_problem_for_bat', bat %>
<% end %>
<% end %>

<% else %>
You are responsible for no medical problems.
<% end %>

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


Always show current status of request.

Always show current status of request.

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

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

        <%
            # this will work, but will spawn catdoc and be slow!
            #highlight_and_excerpt(event.search_text_main, @highlight_words, 150)
        %>
        <% if not event.outgoing_message.nil? %>
            <%= highlight_and_excerpt(event.outgoing_message.body_without_salutation, @highlight_words, 150) %>
        <% elsif not event.incoming_message.nil? %>
            <%= highlight_and_excerpt(event.incoming_message.get_body_for_quoting, @highlight_words, 150) %>
        <% else %>
            <%= highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150) %>
        <% end %>

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

        <%= info_request.display_status %>

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

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

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

        <%
            # this will work, but will spawn catdoc and be slow!
            #highlight_and_excerpt(event.search_text_main, @highlight_words, 150)
        %>
        <% if not event.outgoing_message.nil? %>
            <%= highlight_and_excerpt(event.outgoing_message.body_without_salutation, @highlight_words, 150) %>
        <% elsif not event.incoming_message.nil? %>
            <%= highlight_and_excerpt(event.incoming_message.get_body_for_quoting, @highlight_words, 150) %>
        <% else %>
            <%= highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150) %>
        <% end %>

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

        <% if event.event_type == 'sent' %>

            <%= info_request.display_status %>

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


Fix warning

Fix warning

<%
  @page_title = :time.l
  @tabbed_navigation_items = project_tabbed_navigation(:time)
  @bread_crumbs = project_crumbs(:time)

  @page_actions = []

  if ProjectTime.can_be_created_by(@logged_user, @active_project)
    @page_actions << {:title => :add_time, :url => "/project/#{@active_project.id}/time/add"}
  end

  @page_actions << {:title => :sort_by_finished_date, :url => "/project/#{@active_project.id}/time/index?orderBy=done_date"}
  @page_actions << {:title => :sort_by_hours, :url => "/project/#{@active_project.id}/time/index?orderBy=hours"}
  @page_actions << {:title => :report_by_task, :url => "/project/#{@active_project.id}/time/by_task?orderBy=hours"}

  @additional_stylesheets = ['project/time']
%>

<% if not @times.empty? %>

<%= pagination_links "/project/#{@active_project.id}/time/index?", @pagination unless @pagination.length <= 1 %>

    <%= :date.l %>
    <%= :person.l %>
    <%= :hours.l %>
    <%= :summary.l %>

<% time_now = Time.now %>
<% @times.each do |time| -%>

<% if time.is_today? %>

<% elsif time.is_yesterday? %>

<% else %>

<% end %>

<% if time.done_date.year == Time.now.year %>
      <%= format_usertime(time.done_date, "%b %d.") %>
<% else %>
      <%= format_usertime(time.done_date, "%b %d. %Y") %>
<% end %>

      <% if time.assigned_to.nil? %>
      	???
      <% else %>
        <%= h time.assigned_to.object_name %>
      <% end %>

    <%= time.hours %>

			<% if !time.open_task.nil? %><img src="/themes/<%= AppConfig.site_theme %>/images/logtypes/projecttasks.gif" alt="projectask" title="projectask" /> <%= link_to(time.name, time.open_task.object_url, :class => 'assignedTo') %><% else %><%= h time.name %><% end %>

<%= action_list actions_for_time(time) %>

<% end %>

<%= pagination_links "/project/#{@active_project.id}/time/index?", @pagination unless @pagination.length <= 1 %>

<% else %>

<%= :no_times_in_project.l %>

<% end %>

<%
  @page_title = :time.l
  @tabbed_navigation_items = project_tabbed_navigation(:time)
  @bread_crumbs = project_crumbs(:time)

  @page_actions = []

  if ProjectTime.can_be_created_by(@logged_user, @active_project)
    @page_actions << {:title => :add_time, :url => "/project/#{@active_project.id}/time/add"}
  end

  @page_actions << {:title => :sort_by_finished_date, :url => "/project/#{@active_project.id}/time/index?orderBy=done_date"}
  @page_actions << {:title => :sort_by_hours, :url => "/project/#{@active_project.id}/time/index?orderBy=hours"}
  @page_actions << {:title => :report_by_task, :url => "/project/#{@active_project.id}/time/by_task?orderBy=hours"}

  @additional_stylesheets = ['project/time']
%>

<% if not @times.empty? %>

<%= pagination_links "/project/#{@active_project.id}/time/index?", @pagination unless @pagination.length <= 1 %>

    <%= :date.l %>
    <%= :person.l %>
    <%= :hours.l %>
    <%= :summary.l %>

<% time_now = Time.now %>
<% @times.each do |time| -%>

<% if time.is_today? %>

<% elsif time.is_yesterday? %>

<% else %>

<% end %>

<% if time.done_date.year == Time.now.year %>
      <%= format_usertime(time.done_date, "%b %d.") %>
<% else %>
      <%= format_usertime(time.done_date, "%b %d. %Y") %>
<% end %>

      <% if time.assigned_to.nil? %>
      	???
      <% else %>
        <%= h time.assigned_to.object_name %>
      <% end %>

    <%= time.hours %>

			<% if !time.open_task.nil? %><img src="/themes/<%= AppConfig.site_theme %>/images/logtypes/projecttasks.gif" alt="projectask" title="projectask" /> <%= link_to (time.name, time.open_task.object_url, :class => 'assignedTo') %><% else %><%= h time.name %><% end %>

<%= action_list actions_for_time(time) %>

<% end %>

<%= pagination_links "/project/#{@active_project.id}/time/index?", @pagination unless @pagination.length <= 1 %>

<% else %>

<%= :no_times_in_project.l %>

<% end %>


Adding plaintext html template

Adding plaintext html template

Hi <%= @recipient.name %>,

Please click on the link below to confirm the story you just
added to Brief Encounters:

<%= @link %>

If your email program does not let you click on this link, copy
and paste it into your web browser and press return.

Your story had the title: <%= @story.subject %>

And details: <%= @story.description %>

Your name will be shown as: <%= @recipient.name.blank? ? t(:anonymous) : @recipient.name %>

Yours,
The mySociety team

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


Link to admin page

Link to admin page

<% @title = "Overview" %>

<%=@title%>

<%=@public_body_count%> public bodies

<%=@info_request_count%> requests

<%=@user_count%> users

<% if @requires_admin_requests.size > 0 %>

Requests requiring admin attention

    <% for @requires_admin_request in @requires_admin_requests %>

<%= link_to h(@requires_admin_request.title), main_url(request_url(@requires_admin_request)) %>

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

Public bodies with missing contact details

    <% for @blank_contact in @blank_contacts %>

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

    <% end %>

<% end %>

<%=h @events_title%>

Week
| Month
| All time

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

        <% end %>

<%= simple_date(event.created_at) %>

    <% else %>

    <% end %>
    <% last_date = event.created_at.to_date %>

    '<%= link_to h(event.info_request.title), main_url(request_url(event.info_request)) %>'
    <% 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_messages = OutgoingMessage.find(:all, 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 == 'response' %>
        <% incoming_message = IncomingMessage.find(event.params[:incoming_message_id]) %>
        received
        <%= link_to 'a response',
            main_url(show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id, :only_path => true)) %>

        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' %>
        <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
        had a follow up message sent to <%=h event.info_request.public_body.name %>.
    <% else %>
        had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
    <% end %>
<% end %>
<% if not @events.empty? %>

<% end %>

<% @title = "Overview" %>

<%=@title%>

<%=@public_body_count%> public bodies

<%=@info_request_count%> requests

<%=@user_count%> users

<% if @requires_admin_requests.size > 0 %>

Requests requiring admin attention

    <% for @requires_admin_request in @requires_admin_requests %>

<%= link_to h(@requires_admin_request.title), main_url(request_url(@requires_admin_request)) %>

    <% end %>

<% end %>

<% if @blank_contacts.size > 0 %>

Public bodies with missing contact details

    <% for @blank_contact in @blank_contacts %>

<%= link_to h(@blank_contact.name), main_url(public_body_url(@blank_contact)) %>

    <% end %>

<% end %>

<%=h @events_title%>

Week
| Month
| All time

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

        <% end %>

<%= simple_date(event.created_at) %>

    <% else %>

    <% end %>
    <% last_date = event.created_at.to_date %>

    '<%= link_to h(event.info_request.title), main_url(request_url(event.info_request)) %>'
    <% 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_messages = OutgoingMessage.find(:all, 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 == 'response' %>
        <% incoming_message = IncomingMessage.find(event.params[:incoming_message_id]) %>
        received
        <%= link_to 'a response',
            main_url(show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id, :only_path => true)) %>

        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' %>
        <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
        had a follow up message sent to <%=h event.info_request.public_body.name %>.
    <% else %>
        had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
    <% end %>
<% end %>
<% if not @events.empty? %>

<% end %>


Remove the typo

Remove the typo

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


Use new tab/window when following links in request typeahead search

<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name))  %>

<% if @existing_request %>

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

<% end %>

    <%= foi_error_messages_for :info_request, :outgoing_message %>

<%= _('2. Ask for Information') %>

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

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

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

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

<%= _('Special note for this authority!') %>

<%= @info_request.public_body.notes_as_html %>

        <% end %>

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

<%= _('Please ask for environmental information only') %>

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

<%= _('Air, water, soil, land, flora and fauna (including how these effect
            human beings)') %>

<%= _('Information on emissions and discharges (e.g. noise, energy,
            radiation, waste materials)') %>

<%= _('Human health and safety') %>

<%= _('Cultural sites and built structures (as they may be affected by the
            environmental factors listed above)') %>

<%= _('Plans and administrative measures that affect these matters') %>

<%= _('Please only request information that comes under those categories, do not waste your
            time or the time of the public authority by requesting unrelated information.') %>

        <% end %>

            <%= _('Summary:') %>
            <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>

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

<%= _('Write your request in simple, precise language.') %>

<%= _('Ask for specific documents or information, this site is not suitable for general enquiries.') %>

<%= _('Keep it focused, you\'ll be more likely to get what you want (why?).') % [help_requesting_path + '#focused'] %>

        <% fields_for :outgoing_message do |o| %>

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

        <% end %>

        <% if !@user %>

                <%= _('Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>
                <%= _('If you are thinking of using a pseudonym,
                please read this first.') % [help_privacy_path+"#public_request"] %>

        <% else %>

                <%= _('Everything that you enter on this page
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>

        <% end %>

            <%= _(" Can I request information about myself?\n" +
            "\t\t\tNo! (Click here for details)") % [help_requesting_path+"#data_protection"] %>

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

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

                <%= f.hidden_field(:tag_string) %>
                Tags: <%=h @info_request.tag_string %>

        <% end %>

<% end %>


issue 35 - submit hours on safari bug fixed

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


Delete backup.rhtml

Delete backup.rhtml

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