]> git.openstreetmap.org Git - rails.git/blob - app/views/notifications/_changeset_comment.html.erb
Merge remote-tracking branch 'upstream/pull/7294'
[rails.git] / app / views / notifications / _changeset_comment.html.erb
1 <%# locals: (notification:, record:) %>
2
3 <%= render(
4       "notifications/notification_header",
5       :title => t(".headline"),
6       :uri => changeset_path(
7         record.changeset,
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 event-description">
18     <% if record.changeset.comment %>
19       <%= t(
20             "notifications.changeset_comment.description_with_summary_html",
21             :commenter_name_with_link => link_to(
22               record.author.display_name,
23               record.author
24             ),
25             :changeset_id_with_link => link_to("##{record.changeset_id}", record.changeset),
26             :changeset_summary => record.changeset.comment
27           ) %>
28     <% else %>
29       <%= t(
30             "notifications.changeset_comment.description_without_summary_html",
31             :commenter_name_with_link => link_to(
32               record.author.display_name,
33               record.author
34             ),
35             :changeset_id_with_link => link_to("##{record.changeset_id}", record.changeset)
36           ) %>
37     <% end %>
38   </p>
39   <%= render "notifications/notification_quote", :body => record.body %>
40 <% end %>