1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<div id="after_actions">
<h2>Things to do with this request</h2>
<div id="anyone_actions">
<strong>Anyone:</strong>
<ul>
<li>
<%= link_to "Add an annotation", new_comment_url(:url_title => @info_request.url_title) %> (to help
the requester or others)
</li>
<% if @old_unclassified %>
<li>
<%= link_to "Update the status of this request", '#describe_state_form_1' %>
</li>
<% end %>
</ul>
</div>
<div id="owner_actions">
<strong><%=h @info_request.user.name %> only:</strong>
<ul>
<li>
<% if @last_response.nil? %>
<%= link_to "Send follow up to " + OutgoingMailer.name_for_followup(@info_request, @last_response), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
<% else %>
<% foi_cache(:controller => "request", :action => "show_response", :id => @info_request.id, :incoming_message_id => @last_response.id, :only_path => true, :template => "_after_actions", :section => "reply_to_link") do %>
<%= link_to "Reply to " + OutgoingMailer.name_for_followup(@info_request, @last_response), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
<% end %>
<% end %>
</li>
<% if !@old_unclassified %>
<li>
<%= link_to "Update the status of this request", request_url(@info_request, :update_status => 1) %>
</li>
<% end %>
<li>
<%= link_to "Request an internal review", show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>
</li>
</ul>
</div>
<div id="public_body_actions">
<strong><%=h @info_request.public_body.name %> only:</strong>
<ul>
<li>
<%= link_to "Respond to request", upload_response_url(:url_title => @info_request.url_title) %>
</li>
</ul>
</div>
</div>
|