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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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