aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_followup.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/request/_followup.rhtml')
-rw-r--r--app/views/request/_followup.rhtml9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/views/request/_followup.rhtml b/app/views/request/_followup.rhtml
index 19150e93f..b363e94de 100644
--- a/app/views/request/_followup.rhtml
+++ b/app/views/request/_followup.rhtml
@@ -1,14 +1,11 @@
<div id="followup">
- <% if incoming_message.nil? %>
+ <% if incoming_message.nil? || !incoming_message.valid_to_reply_to? %>
<h2>Send a follow up message
- to '<%=h @info_request.public_body.name %>'
+ to '<%=h RequestMailer.name_for_followup(@info_request, nil) %>'
</h2>
<% else %>
- <h2>Send a reply
- <% if !incoming_message.safe_mail_from.nil? %>
- to <%= incoming_message.safe_mail_from %>
- <% end %>
+ <h2>Send a reply to <%=h RequestMailer.name_for_followup(@info_request, incoming_message) %>
</h2>
<% end %>