]> git.openstreetmap.org Git - rails.git/blob - app/views/notifications/_note_comment.html.erb
Merge remote-tracking branch 'upstream/pull/7294'
[rails.git] / app / views / notifications / _note_comment.html.erb
1 <%# locals: (notification:, record:) %>
2
3 <%= render(
4       "notifications/notification_header",
5       :title => t(".headline.#{record.event}"),
6       :uri => note_path(
7         record.note,
8         :anchor => "c#{record.id}"
9       ),
10       :timestamp => record.created_at
11     ) %>
12
13 <%= render(
14       "notifications/notification_body",
15       :author => record.author
16     ) do %>
17   <p class="text-body-secondary mb-1">
18     <%= t(
19           "notifications.note_comment.description.#{record.event}_html",
20           :commenter_name_with_link => link_to(
21             record.author.display_name,
22             record.author
23           ),
24           :note_id_with_link => link_to("##{record.note_id}", record.note),
25           :note_text => record.note.description
26         ) %>
27   </p>
28   <% if record.body.present? %>
29     <%= render "notifications/notification_quote", :body => record.body %>
30   <% end %>
31 <% end %>