From 9b91ae8df74145e4276fc930eae9e4e262e57e0c Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Wed, 25 Jan 2023 14:01:24 +0000 Subject: [PATCH] Display notification sent date --- app/views/members/show.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/members/show.html.erb b/app/views/members/show.html.erb index 8d1c1fb..61f6f12 100644 --- a/app/views/members/show.html.erb +++ b/app/views/members/show.html.erb @@ -61,7 +61,12 @@ <%= notification.to_be_sent_on %> <%= notification.template %> - <%= notification_status(notification.status) %> + + <%= notification_status(notification.status) %> + <% if notification.status == 'sent' %> + (<%= notification.sent_at %>) + <% end %> + <% if notification.status == 'scheduled' %> <%= form_with url: deliver_notification_path(notification) do |form| %>