]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/changeset_comment_notification.html.erb
avatar inline attachment; text alignment
[rails.git] / app / views / notifier / changeset_comment_notification.html.erb
index dffb29059397771bee5539871e21b93de7cf81b6..3aaf9fb9e6f4bc602d6922dae828ebabf58929fb 100644 (file)
@@ -24,7 +24,7 @@
               <td colspan="2">
                 <table width="100%" bgcolor="#fff" cellspacing="15" style="color: #222; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 14px; border: solid 1px #ccc">
                   <tr>
-                    <td>
+                    <td style="text-align: left">
                       <p>
                         <% if @owner %>
                           <%= t "notifier.changeset_comment_notification.commented.your_changeset_html", :commenter => @commenter, :commenter_url => @commenter_url, :time => @time %>
                           <%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %>
                         <% end %>
                       </p>
-                      <table style="color: #222; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px; font-style: italic; margin: 15px; background-color: #eee" cellpadding="10">
+                      <table width="520" style="color: #222; font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 15px; font-style: italic; margin: 15px; background-color: #eee" cellpadding="10">
                         <tr>
-                          <td style="vertical-align: top">
-                            <a href="<%= @commenter_url %>" target="_blank"><img src="<%= @commenter_thumbnail_src %>"></a>
+                          <td style="width: 70px; vertical-align: top">
+                            <a href="<%= @commenter_url %>" target="_blank"><%= image_tag attachments["avatar.png"].url, alt: @commenter %></a>
                           </td>
-                          <td style="vertical-align: top">
+                          <td style="text-align: left; vertical-align: top">
                             <%= @comment.to_html %>
                           </td>
                         </tr>