app/views/users/notifications/_notification.html.erb
<div class="row d-flex flex-column flex-md-row border-top mb-4 p-2" id="notification-<%= notification.id %>">
<div class="notification__date font-italic">
<%= notification.created_at.strftime("%d %b") %>
</div>
<div class="notification__data mt-2 mt-md-0">
<div class="notification__message">
<%= notification.message %>
</div>
<div class="notification__info mt-1">
<% if resource_link?(notification) %>
<span class="notification__link">
<%= resource_link(notification) %>
</span>
<span> ยท </span>
<% end %>
<span class="notification__mark-as-read">
<%= link_to "Mark as read",
user_notification_path(current_user, notification),
method: :delete %>
</span>
</div>
</div>
</div>