<% cache notification do %> <%= notification_tag notification do %>
<%= avatar_image_tag(notification.creator) %>
<%= notification_title(notification) %>
<% if notification.event.action == "commented" %> <%= "#{ strip_tags(notification.event.comment.body_html).blank? ? "#{ notification.event.creator.name } replied" : "#{ notification.event.creator.name }:" } #{ strip_tags(notification.event.comment.body_html).truncate(200) }" %> <% else %> <%= notification_body(notification) %> <% end %>
<%= notification.bubble.bucket.name %> ยท <%= local_datetime_tag(notification.created_at, style: :ago) %>
<% end %> <% end %>