app/views/notifications/_notification.html.haml
= turbo_frame_tag notification do
.p-2.notification{class: "is_read_#{notification.is_read}"}
= link_to path_to_notifiable(notification.notifiable),
class: "post_user", data: { turbo: false } do
- if notification.notifier.avatar.attached?
= image_tag thumb_image(notification.notifier.avatar)
- else
= image_tag "default_avatar.png"
= notification.notifier.username
= notification.action
.timestamp
#{time_ago_in_words(notification.created_at)} ago