]> git.openstreetmap.org Git - rails.git/blob - app/views/notifications/_diary_comment.html.erb
Merge remote-tracking branch 'upstream/pull/7146'
[rails.git] / app / views / notifications / _diary_comment.html.erb
1 <%# locals: (notification:, record:) %>
2
3 <%= render(
4       "notifications/notification_header",
5       :title => t(".headline"),
6       :uri => diary_entry_path(
7         record.diary_entry.user,
8         record.diary_entry,
9         :anchor => "c#{record.id}"
10       ),
11       :timestamp => record.created_at
12     ) %>
13
14 <%= render(
15       "notifications/notification_body",
16       :author => record.user
17     ) do %>
18   <p class="text-body-secondary">
19     <%= t(
20           "notifications.diary_comment.description_html",
21           :commenter_name_with_link => link_to(
22             record.user.display_name,
23             record.user
24           ),
25           :diary_entry_title_with_link => link_to(
26             record.diary_entry.title,
27             diary_entry_path(
28               record.diary_entry.user,
29               record.diary_entry
30             )
31           )
32         ) %>
33   </p>
34   <%= render "notifications/notification_quote", :body => record.body %>
35 <% end %>