2020-01-23 17:29:07 +00:00
|
|
|
<p>Hi <%= @contact.name %>,</p>
|
|
|
|
|
|
|
|
<p>You have new messages on your conversation.</p>
|
|
|
|
|
2020-05-06 07:10:41 +00:00
|
|
|
<% @messages.each do |message| %>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2020-08-01 13:00:47 +00:00
|
|
|
<b><%= message.incoming? ? 'You' : message.sender&.available_name || message.sender&.name %></b>
|
2020-05-06 07:10:41 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2020-08-23 14:28:19 +00:00
|
|
|
<td style="padding: 10px 20px; margin: 5px 0 20px 0; background: #F2F3F7; border-radius: 10px; display: inline-block; font-family: "Helvetica Neue",Tahoma,Arial,sans-serif; text-align: start; unicode-bidi: plaintext;">
|
2020-05-06 07:10:41 +00:00
|
|
|
<% if message.content %>
|
|
|
|
<%= message.content %>
|
|
|
|
<% end %>
|
|
|
|
<% if message.attachments %>
|
|
|
|
<% message.attachments.each do |attachment| %>
|
2020-08-17 05:55:13 +00:00
|
|
|
Attachment [<a href="<%= attachment.file_url %>" _target="blank">Click here to view</a>]
|
2020-03-30 10:37:01 +00:00
|
|
|
<% end %>
|
2020-05-06 07:10:41 +00:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|