From 191c8e4e9d9a8a40865e699bb4ade94d514e2d8d Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Fri, 20 Oct 2017 23:44:51 +1300 Subject: [PATCH] Display messages even when member is deleted --- app/views/notifications/index.html.haml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/notifications/index.html.haml b/app/views/notifications/index.html.haml index 81e88c010..d8d9b25c5 100644 --- a/app/views/notifications/index.html.haml +++ b/app/views/notifications/index.html.haml @@ -15,10 +15,13 @@ - if can? :read, n %tr %td - - if n.read - = link_to n.sender, member_path(n.sender) + - if n.sender.present? + - if n.read + = link_to n.sender, member_path(n.sender) + - else + %strong= link_to n.sender, member_path(n.sender) - else - %strong= link_to n.sender, member_path(n.sender) + *deleted member* %td - if n.read = link_to n.subject, notification_path(n)