]> git.openstreetmap.org Git - rails.git/commitdiff
avatar inline attachment; text alignment
authorHerve Saint-Amand <git@saintamh.org>
Thu, 29 Dec 2016 23:37:39 +0000 (23:37 +0000)
committerHerve Saint-Amand <git@saintamh.org>
Thu, 29 Dec 2016 23:37:39 +0000 (23:37 +0000)
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 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 %>
                       <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>
                           <%= 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>
                         <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>
-                          <td style="vertical-align: top">
+                          <td style="text-align: left; vertical-align: top">
                             <%= @comment.to_html %>
                           </td>
                         </tr>
                             <%= @comment.to_html %>
                           </td>
                         </tr>