% @title = "FOI request - " + h(@info_request.title) %> <%= javascript_include_tag :defaults %>
<%= hidden_field_tag 'info_request_id', @info_request.id %>
<% for column in InfoRequest.content_columns %>
<%= column.human_name %>: <%=h @info_request.send(column.name) %>
<% if column.name == 'described_state' %>
Calculated status: <%= @info_request.calculate_status %>
Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
Date response required by: <%= @info_request.date_response_required_by %>
Very overdue after: <%= @info_request.date_very_overdue_after %>
<% end %>
<% if ![ 'allow_new_responses_from' ].include?(column.name) %>
<% end %>
<% end %>
Created by: <%= user_both_links(@info_request.user) %>
(<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)
Public authority: <%= public_body_both_links(@info_request.public_body) %>
(<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)
Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>
Tags: <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>
<%= link_to 'Public page', main_url(request_url(@info_request)) %> | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %> | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)
Id | <% for column in InfoRequestEvent.content_columns %><%= column.human_name %> | <% end %>Actions |
---|---|---|
<%=h info_request_event.id %> | <% for column in InfoRequestEvent.content_columns %><% if column.name == 'params_yaml' %> <%= info_request_event.params_yaml_as_html %> <% elsif column.text? %> <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %> <% else %> <%=h info_request_event.send(column.name) %> <% end %> | <% end %>
<% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
<% form_tag '../mark_event_as_clarification' do %>
<%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
<%= submit_tag "Was clarification request" %>
<% end %>
<% end %>
|
Id | <% for column in OutgoingMessage.content_columns %><%= column.human_name %> | <% end %>Actions | |
---|---|---|---|
<%=h outgoing_message.id %> | <% for column in OutgoingMessage.content_columns.map { |c| c.name } %> <% if column == 'body' %>
<%= simple_format( truncate(outgoing_message.body, :length => 400,
:omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
)) %>
|
<% else %>
<%= simple_format( outgoing_message.send(column) ) %> | <% end %> <% end %>
<% form_tag '../resend' do %>
<%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
<%= submit_tag "Resend" %>
<% end %>
<%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>
|
Id | <% for column in IncomingMessage.content_columns %><%= column.human_name %> | <% end %>Actions | |
---|---|---|---|
<%=h incoming_message.id %> | <% for column in IncomingMessage.content_columns.map { |c| c.name } %> <% if column =~ /^cached_.*?$/ %>
<%= simple_format( truncate(incoming_message.send(column), :length => 400,
:omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
)) %>
|
<% else %>
<%= simple_format( incoming_message.send(column) ) %> | <% end %> <% end %>
<% if !incoming_message.raw_email_id.nil? %>
<%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %> <% end %> <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %> |
Id | Posted by | <% for column in Comment.content_columns %><%= column.human_name %> | <% end %>Actions | |
---|---|---|---|---|
<%=h comment.id %> | <%= user_both_links(comment.user) %> | <% for column in Comment.content_columns.map { |c| c.name } %> <% if column == 'body' && !comment.visible %><%=h comment.send(column) %> | <% end %> <% end %><%= link_to "Edit", '../edit_comment/' + comment.id.to_s %> |
None yet.
<% end %>(Lines containing the request incoming email address, updated hourly.)
<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %><% for exim_log in exim_logs %><%=h exim_log.line%><% end %><% end %> <% if @info_request.exim_logs.size == 0 %>
None (perhaps this is an old or a very new request)
<% end %>