Chore: Fix broken conversation mailer layout (#825)

This commit is contained in:
Pranav Raj S
2020-05-06 12:40:41 +05:30
committed by GitHub
parent e9131ea558
commit b50aeb7ae4

View File

@@ -2,22 +2,22 @@
<p>You have new messages on your conversation.</p> <p>You have new messages on your conversation.</p>
<table> <% @messages.each do |message| %>
<% @messages.each do |message| %> <tr>
<tr> <td>
<td> <b><%= message.incoming? ? 'You' : message.user.name %></b>
<b><%= message.incoming? ? 'You' : message.user.name %></b> </td>
</td> </tr>
<td>: <tr>
<% if message.content %> <td style="padding-bottom: 16px;">
<%= message.content %> <% if message.content %>
<%= message.content %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>
attachment [<a href="<%= attachment.file_url %>" _target="blank">click here to view</a>]
<% end %> <% end %>
<% if message.attachments %> <% end %>
<% message.attachments.each do |attachment| %> </td>
attachment [<a href="<%= attachment.file_url %>" _target="blank">click here to view</a>] </tr>
<% end %> <% end %>
<% end %>
</td>
</tr>
<% end %>
</table>