1 <%# locals: (notification:, record:) %>
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">
10 :anchor => "c#{record.id}"
14 <p class="col-4 lh-sm text-end"><%= friendly_date_ago(record.created_at) %></p>
18 <div class="col-1 text-center">
20 user_thumbnail(record.author, :class => "img-fluid"),
21 user_url(record.author),
22 :target => "_blank", :rel => "noopener"
26 <p class="text-body-secondary mb-1 event-description">
27 <% if record.changeset.comment %>
29 ".description_with_summary_html",
30 :commenter_name_with_link => link_to(
31 record.author.display_name,
34 :changeset_id_with_link => link_to("##{record.changeset_id}", record.changeset),
35 :changeset_summary => record.changeset.comment
39 ".description_without_summary_html",
40 :commenter_name_with_link => link_to(
41 record.author.display_name,
44 :changeset_id_with_link => link_to("##{record.changeset_id}", record.changeset)
48 <blockquote class="col-10 fst-italic border-start border-light-subtle border-3 ps-2">
49 <%= record.body.to_html %>