Created
March 23, 2015 13:37
-
-
Save DeskWOW/0cbebbd691364cd2aafc to your computer and use it in GitHub Desktop.
Custom Reply Theme -- Highlight the most recent message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table border="0" cellpadding="0" cellspacing="0" width="100%"> | |
<tr> | |
<td align="center" valign="top"> | |
<table border="0" cellpadding="0" cellspacing="0" width="100%"> | |
<tr> | |
<td valign="top" style="color:#333; font-family:Arial; font-size:14px; line-height:150%; text-align:left;"> | |
<table border="0" cellpadding="10" cellspacing="0" width="100%"> | |
<tr> | |
<td valign="top"> | |
<div> | |
<span style="font-size:90%; color:#777;">{{system.snippets.response_above_this_line}}</span> | |
<hr /> | |
<div style="background-color:#efefef; font-size:100%; padding:5px; margin:10px 0 0 0;"> | |
<strong>{{customer.name}}</strong><br/> | |
<strong>{{system.snippets.subject}}:</strong> {{case.subject}} | |
</div> | |
<hr /> | |
{% assign emails = case.emails %} | |
{% for email in emails reversed %} | |
{% if forloop.first %}<div style="background: rgb(254, 255, 215)">{% endif %} | |
{% if email.agent %} | |
<span style="font-size:80%;">{{email.send_at | date: "%b %d, %Y" | upcase}} | {{email.send_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}}</span> | |
<br /> | |
<strong>{{email.agent.name_public}}</strong> {{system.snippets.replied}}:<br/> | |
<div>{{email.new_html}}</div> | |
{% if email.agent.signature %} | |
<div style="margin-top:10px;"> {{email.agent.signature | newline_to_br}}</div> | |
{% endif %} | |
<hr /> | |
{% else %} | |
<span style="font-size:80%;">{{email.created_at | date: "%b %d, %Y" | upcase}} | {{email.created_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}} | |
</span> | |
<br /> | |
{% if forloop.last %} | |
<span style="background-color: #efefef; font-weight:strong;">{{system.snippets.original_message}}</span><br/> | |
{% endif %} | |
<strong> | |
{% if customer.id == email.from_customer.id %} | |
{{customer.first_name}} | |
{% else %} | |
{{email.from_customer.first_name}} | |
{% endif %} | |
</strong> | |
{% if forloop.last %} | |
{{system.snippets.wrote}}:<br /><br /> | |
{% elsif customer.id == email.from_customer.id %} | |
{{system.snippets.replied}}:<br /> | |
{% endif %} | |
{{email.new_html}} | |
<hr /> | |
{% endif %} | |
{% if forloop.first %}</div>{% endif %} | |
{% endfor %} | |
<div style="background-color:#fafafa; border:0; font-size:80%; padding:2px;"> {{system.snippets.message_was_sent_to}} {{case.customer.email}} {{system.snippets.in_reference_to_case}}: {{case.id}}. <br /> | |
{% if site.myportal_enabled %} | |
{{system.snippets.email_reply_portal_link}}<br /><a href="{{portal_link}}">{{portal_link}}</a><br /><br /> | |
<strong>{{system.snippets.email_reply_multi_recipient_msg}}</strong><br/> | |
{{system.snippets.email_reply_multi_recipient_exp}}<br /> | |
{% endif %} | |
</div> | |
</div> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment