]> git.openstreetmap.org Git - rails.git/blob - app/views/notifier/changeset_comment_notification.html.erb
344a4e33d6bb2f53cae944e27a32077d0749cabf
[rails.git] / app / views / notifier / changeset_comment_notification.html.erb
1 <% content_for :body do %>
2   <p style="margin: 0">
3     <% if @owner %>
4       <%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %>
5     <% else %>
6       <%= raw t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %>
7     <% end %>
8     <% if @changeset_comment %>
9       <%= raw t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %>
10     <% else %>
11       <%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
12     <% end %>
13   </p>
14   <table style="font-size: 15px; font-style: italic; margin: 15px; background-color: #eee; width: 520px">
15     <tr>
16       <td style="width: 50px; vertical-align: top; padding: 15px">
17         <a href="<%= @commenter_url %>" target="_blank"><%= image_tag attachments["avatar.png"].url, alt: @commenter %></a>
18       </td>
19       <td style="text-align: left; vertical-align: top; padding-right: 10px">
20         <%= @comment.to_html %>
21       </td>
22     </tr>
23   </table>
24   <p>
25     <%= raw t 'notifier.changeset_comment_notification.details', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url)) %>
26   </p>
27 <% end %>
28
29 <% content_for :footer do %>
30   <p>
31     <%= raw t 'notifier.changeset_comment_notification.unsubscribe', :url => content_tag("nobr", link_to(@changeset_url, @changeset_url, :style => "color: #222")) %>
32   </p>
33 <% end %>