Skip to content

Instantly share code, notes, and snippets.

@schweppsie
Last active January 16, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schweppsie/6f1144a52e04b787e49fb0a4cb004cda to your computer and use it in GitHub Desktop.
Save schweppsie/6f1144a52e04b787e49fb0a4cb004cda to your computer and use it in GitHub Desktop.
Reply Theme 02
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
</head>
<body>
{% assign emails = case.emails_for_reply_theme %}
{% for email in emails reversed %}
{% if forloop.first %}
<!-- START: CASE INFO AREA -->
<table cellspacing="0" cellpadding="10px" border="0" width="100%" style="background-color: #F5F5F5; color: #3e3e3e; border-bottom: 3px solid white; padding:5px;">
<tr>
<td style="width: 33.33%;">
<div>
<span><b>Your Agent &nbsp;|&nbsp; </b> {{ email.agent.name_public }} </span>
</div>
</td>
<td style="width: 33.33%; text-align: center;">
<div>
<span><b>Case Number &nbsp;|&nbsp; </b> #{{case.id}}</span>
</div>
</td>
<td style="width: 33.33%; text-align: right;">
<div>
<span><b>Date &nbsp;|&nbsp; </b> {{email.send_at | in_time_zone: site.timezone | date: "%b %d, %Y %I:%M %p"}}</span>
</div>
</td>
</tr>
</table>
<!-- END: CASE INFO AREA -->
<table cellspacing="0" cellpadding="10px" border="0" width="100%" style="border-top: 5px solid #F5F5F5; padding-top:10px; padding-bottom:30px;">
<!-- START: EMAIL BODY TEXT -->
<tr>
<td>
<div style="color: #3e3e3e; font-size: 14px;">
{{ email.new_html }}
<!-- END: EMAIL BODY TEXT -->
<!-- START: AGENT SIGNATURE AREA -->
{% if email.agent.signature %}
<div style="margin-top:10px;">{{ email.agent.signature | newline_to_br }}
</div>
{% endif %}
<!-- END: AGENT SIGNATURE AREA -->
</div>
</td>
</tr>
</table>
{% else %}
<!-- START: FIRST REPLY -->
<table class="email-body" cellspacing="0" cellpadding="10px" border="0" width="100%" style="margin-bottom: 20px;
">
<tr>
<td style="width: 120px; border-right: 1px solid #ccc; vertical-align: top; padding-top:4px">
<div class="info-box" style="text-align:right; color: #565656;">
<span>{% if email.from_address == customer.email %}
<span>You</span>
{% else %}
{{ email.agent.name_public }}
{% endif %} wrote:</span>
</div>
<div style="text-align: right; font-size: 12px; padding-top: 10px; width: 70px; float: right;color: #565656;">
<span>{{email.send_at | in_time_zone: site.timezone | date: "%b %d, %Y %I:%M %p"}}</span>
</div>
<div style="text-align:right; text-align: right; font-size: 12px; padding-top: 10px; width: 70px; float: right;color: #565656;">
<span>#{{case.id}}</span>
</div>
</td>
<td style="vertical-align: top; text-align: left; padding-top: 4px;">
<div style="color: #565656; margin-top:0px;">
{{ email.new_html }}
</div>
</td>
</tr>
</table>
{% endif %}
{% endfor %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment