<%# locals: (notification:) %>

<%= link_to( t(".headline.#{notification.event}"), note_path( notification.note, :anchor => "c#{notification.comment_id}" ) ) %>

<%= friendly_date_ago(notification.timestamp) %>

<%= link_to( user_thumbnail(notification.commenter, :class => "img-fluid"), user_url(notification.commenter), :target => "_blank", :rel => "noopener" ) %>

<%= t( ".description.#{notification.event}_html", :commenter_name_with_link => link_to( notification.commenter.display_name, notification.commenter ), :note_id_with_link => link_to("##{notification.note_id}", notification.note), :note_text => notification.note_text ) %>

<% if notification.comment_body.present? %>
<%= notification.comment_body.to_html %>
<% end %>