diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/request/_correspondence.rhtml | 2 | ||||
-rw-r--r-- | app/views/request/_followup.rhtml | 2 | ||||
-rw-r--r-- | app/views/request/show.rhtml | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/app/views/request/_correspondence.rhtml b/app/views/request/_correspondence.rhtml index b2cec58f3..8679ce9ca 100644 --- a/app/views/request/_correspondence.rhtml +++ b/app/views/request/_correspondence.rhtml @@ -37,7 +37,7 @@ if not incoming_message.nil? <p class="event_actions"> <%= link_to "Link to this", incoming_message_url(incoming_message) %> | - <%= link_to "Send follow up", show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id) + "#followup" %> + <%= link_to "Reply to this message", show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id) + "#followup" %> </p> </div> <% diff --git a/app/views/request/_followup.rhtml b/app/views/request/_followup.rhtml index bc6f85603..19150e93f 100644 --- a/app/views/request/_followup.rhtml +++ b/app/views/request/_followup.rhtml @@ -5,7 +5,7 @@ to '<%=h @info_request.public_body.name %>' </h2> <% else %> - <h2>Send a follow up message + <h2>Send a reply <% if !incoming_message.safe_mail_from.nil? %> to <%= incoming_message.safe_mail_from %> <% end %> diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml index cab82f1b5..c244fabcc 100644 --- a/app/views/request/show.rhtml +++ b/app/views/request/show.rhtml @@ -112,6 +112,13 @@ <%= link_to "Add an annotation", new_comment_url(:url_title => @info_request.url_title) %> (to help the requester or others) <br> + <% 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 %> + (<%=h @info_request.user.name %> only) + <br> <%= link_to "Respond to request", upload_response_url(:url_title => @info_request.url_title) %> (FOI officers only) </div> |