% @title = "FOI request - " + h(@info_request.title) %> <%= javascript_include_tag :defaults %>
<% for column in InfoRequest.content_columns %>
<%= column.human_name %>: <%=h @info_request.send(column.name) %>
<% end %>
Created by: <%= user_both_links(@info_request.user) %>
Public authority: <%= public_body_both_links(@info_request.public_body) %>
Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>
<%= 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 %>
---|---|
<%=h info_request_event.id %> | <% for column in InfoRequestEvent.content_columns %>
<% if column.name == 'params_yaml' %>
<%= info_request_event.params_yaml %><% elsif column.text? %> <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %> <% else %> <%=h info_request_event.send(column.name) %> <% 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, 400,
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_.*?_text$/ %>
<%= simple_format( truncate(incoming_message.send(column), 400,
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 %>