Chore: Fix broken conversation mailer layout (#825)
This commit is contained in:
@@ -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>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user