From b23ca9f81443dda4707411f5be3b38a4ccb6f766 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Mon, 2 Oct 2023 01:32:32 +0000 Subject: [PATCH] Use same formatting for delivery status as on public page --- .../_tailwind/profiles/_comment.html.erb | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/app/views/_tailwind/profiles/_comment.html.erb b/app/views/_tailwind/profiles/_comment.html.erb index 7e56daabd..791549503 100644 --- a/app/views/_tailwind/profiles/_comment.html.erb +++ b/app/views/_tailwind/profiles/_comment.html.erb @@ -26,29 +26,8 @@
- <% if comment.last_delivered_successfully.nil? %> -

Sent to the planning authority

- <% elsif comment.last_delivered_successfully %> -

Delivered to the planning authority

-

- This comment was successfully delivered to the - email server of - <%= comment.application.comment_authority_with_fallback %> - at - <%= comment.last_delivered_at %> -

- <% else %> -

There was a problem delivering this to the planning authority

-

- The comment was hard bounced by the email server of - <%= comment.application.comment_authority_with_fallback %> - at - <%= comment.last_delivered_at %> - Please follow up by - <%= pa_link_to "contacting us", documentation_contact_path %> - so that we can try to help resolve this issue -

- <% end %> + <%# # TODO: We want the disclosure always open (or no disclosure) instead of what's on the public comments page %> + <%= render "comments/delivery_status", comment: %>