1 <%# locals: (notification:) %>
3 <article class="user-notification">
4 <div class="row align-items-center">
5 <h2 class="col-8 fs-6 mb-3 lh-sm fw-bold">
7 t(".headline.#{notification.event}"),
10 :anchor => "c#{notification.comment_id}"
14 <p class="col-4 lh-sm text-end"><%= friendly_date_ago(notification.timestamp) %></p>
18 <div class="col-1 text-center">
20 user_thumbnail(notification.commenter, :class => "img-fluid"),
21 user_url(notification.commenter),
22 :target => "_blank", :rel => "noopener"
26 <p class="text-body-secondary mb-1">
28 ".description.#{notification.event}_html",
29 :commenter_name_with_link => link_to(
30 notification.commenter.display_name,
31 notification.commenter
33 :note_id_with_link => link_to("##{notification.note_id}", notification.note),
34 :note_text => notification.note_text
37 <% if notification.comment_body.present? %>
38 <blockquote class="col-10 fst-italic border-start border-light-subtle border-3 ps-2">
39 <%= notification.comment_body.to_html %>