Skip to content

Commit

Permalink
Add followup warning when a users name has changed
Browse files Browse the repository at this point in the history
This could be confusing so worth warning the user they might have issues
if not explained to the authority.
  • Loading branch information
gbp committed Jul 7, 2023
1 parent a8918b9 commit b825077
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/followups/_followup.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@
<% end %>
<% end %>

<% if @info_request.from_name != @info_request.user_name %>
<div class="warning">
<%= _('Your name has been changed since your last message in this ' \
'request. Please consider mentioning this to the authority ' \
'and explain that you are the original requester.') %>
</div>
<% end %>

<% form_url =
if incoming_message.nil?
preview_request_followups_url(request_id: @info_request.id)
Expand Down

0 comments on commit b825077

Please sign in to comment.