<%# locals: (notification:, record:) %>

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

<%= friendly_date_ago(record.created_at) %>

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

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

<% if record.body.present? %>
<%= record.body.to_html %>
<% end %>