% @title = h(@info_request.title) %> <% if @info_request.awaiting_description || @requires_admin_describe %>
<%=h @info_request.law_used_with_a%> <% if !@user.nil? && @user.admin_page_links? %> (<%= link_to "admin", request_admin_url(@info_request) %>) <% end %> to <%= public_body_link(@info_request.public_body) %> by <%= user_link(@info_request.user) %>
<% if @info_request.awaiting_description %> <% if @is_owning_user %> Please answer the question above so we know whether the <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information. <% else %> This request has an unknown status. We're waiting for <%= user_link(@info_request.user) %> to read <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %> and update the status. <% end %> <% elsif @status == 'waiting_response' %> Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>, they <%= link_to "must respond", about_url + "#quickly_response" %> promptly but no later than <%= simple_date(@info_request.date_response_required_by) %>. <% elsif @status == 'waiting_response_overdue' %> Currently overdue a response from <%= public_body_link(@info_request.public_body) %>. By law, the response had to be prompt but <%= link_to "no later", about_url + "#quickly_response" %> than <%= simple_date(@info_request.date_response_required_by) %>. <% if @info_request.days_overdue > 14 %> They are <%= @info_request.days_overdue.to_i %> days late, you can complain by <%= link_to "requesting an internal review", show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>. <% end %> <% elsif @status == 'not_held' %> <%= public_body_link(@info_request.public_body) %> did not have the information requested. <% elsif @status == 'rejected' %> The request was rejected by <%= public_body_link(@info_request.public_body) %>. <% elsif @status == 'successful' %> The request was successful. <% elsif @status == 'partially_successful' %> The request was partially successful. <% elsif @status == 'waiting_clarification' %> <% if @is_owning_user %> <%=h @info_request.public_body.name %> is waiting for your clarification. Please <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#followup" %>. <% else %> The request is waiting for clarification. If you are <%= user_link(@info_request.user) %>, please <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message. <% end %> <% elsif @status == 'gone_postal' %> The authority would like to / has responded by post to this request. <% elsif @status == 'internal_review' %> Waiting for an internal review by <%= public_body_link(@info_request.public_body) %> of their handling of this request. <% elsif @status == 'error_message' %> There was a delivery error or similar, which needs fixing by the WhatDoTheyKnow team. <% elsif @status == 'requires_admin' %> This request has had an unusual response, and requires attention from the WhatDoTheyKnow team. <% elsif @status == 'user_withdrawn' %> This request has been withdrawn by the person who made it. There may be an explanation in an annotation below. <% else %> <% raise "unknown status " + @status %> <% end %>
<% for info_request_event in @info_request_events %> <% if info_request_event.visible %> <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %> <% end %> <% end %> <% if @info_request.awaiting_description %><%= link_to "Add an annotation", new_comment_url(:url_title => @info_request.url_title) %> (to help the requester or others)
<%=h @info_request.user.name %> only:
<% if @last_response.nil? %>
<%= link_to "Send follow up to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
<% else %>
<%= link_to "Reply to " + RequestMailer.name_for_followup(@info_request, @last_response), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
<% end %>
|
<%= link_to "Request an internal review", show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>
<%=h @info_request.public_body.name %> only:
<%= link_to "Respond to request", upload_response_url(:url_title => @info_request.url_title) %>