fix: Fix email template to render the chat bubble properly (#3858)
This commit is contained in:
parent
8e6d8e7654
commit
5710b7559e
@ -4,15 +4,16 @@
|
|||||||
|
|
||||||
{% for chat_message in conversation.recent_messages %}
|
{% for chat_message in conversation.recent_messages %}
|
||||||
<div>
|
<div>
|
||||||
|
<h4 style="margin: 0;">
|
||||||
{% if chat_message.sender == user.available_name %}
|
{% if chat_message.sender == user.available_name %}
|
||||||
<h4 style="margin: 0;">You</h4>
|
You
|
||||||
{% else %}
|
{% else %}
|
||||||
<h4 style="margin: 0;">{{chat_message.sender}}</h4>
|
{{chat_message.sender}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div 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;">
|
||||||
<p 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;">
|
|
||||||
{% if chat_message.content %}
|
{% if chat_message.content %}
|
||||||
{{chat_message.content}}
|
{{chat_message.content}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -22,7 +23,6 @@
|
|||||||
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|||||||
@ -7,15 +7,16 @@
|
|||||||
|
|
||||||
{% for chat_message in conversation.recent_messages %}
|
{% for chat_message in conversation.recent_messages %}
|
||||||
<div>
|
<div>
|
||||||
|
<h4 style="margin: 0;">
|
||||||
{% if chat_message.sender == user.available_name %}
|
{% if chat_message.sender == user.available_name %}
|
||||||
<h4 style="margin: 0;">You</h4>
|
You
|
||||||
{% else %}
|
{% else %}
|
||||||
<h4 style="margin: 0;">{{chat_message.sender}}</h4>
|
{{chat_message.sender}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div 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;">
|
||||||
<p 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;">
|
|
||||||
{% if chat_message.content %}
|
{% if chat_message.content %}
|
||||||
{{chat_message.content}}
|
{{chat_message.content}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -25,6 +26,5 @@
|
|||||||
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@ -8,15 +8,16 @@
|
|||||||
<p><b>Previous messages:</b></p>
|
<p><b>Previous messages:</b></p>
|
||||||
{% for chat_message in conversation.recent_messages %}
|
{% for chat_message in conversation.recent_messages %}
|
||||||
<div>
|
<div>
|
||||||
|
<h4 style="margin: 0;">
|
||||||
{% if chat_message.sender == user.available_name %}
|
{% if chat_message.sender == user.available_name %}
|
||||||
<h4 style="margin: 0;">You</h4>
|
You
|
||||||
{% else %}
|
{% else %}
|
||||||
<h4 style="margin: 0;">{{chat_message.sender}}</h4>
|
{{chat_message.sender}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div 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;">
|
||||||
<p style="padding: 10px 20px; margin: 5px 0 20px 0; background: #F2F3F7; border-radius: 10px; display: inline-block; text-align: start; unicode-bidi: plaintext;">
|
|
||||||
{% if chat_message.content %}
|
{% if chat_message.content %}
|
||||||
{{chat_message.content}}
|
{{chat_message.content}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -26,7 +27,6 @@
|
|||||||
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
Attachment [<a href="{{ attachment }}" _target="blank">Click here to view</a>]
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user