Last active
April 1, 2016 15:52
-
-
Save jandreaucodes/93c545a18eeec1cd635d to your computer and use it in GitHub Desktop.
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
{% assign emails = case.emails %} | |
{% assign threadlength = emails.size|minus:1 %} | |
{% for email in emails reversed %} | |
{% if forloop.first %} | |
{{email.new_html}} | |
{% if email.agent %} | |
{%capture sig-exist%}{{email.agent.signature|size}}{%endcapture%} | |
{% if sig-exist != '0'%} | |
<div style="margin-top:10px;"> | |
{{email.agent.signature | newline_to_br}}</div> | |
{% else %} | |
<p> | |
--<br /> | |
{{email.agent.name_public}}<br /> | |
</p> | |
{% endif %} | |
<p> | |
On {{email.created_at | date: "%b %d, %Y"}} at {{email.created_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}} {{email.from}} <{{email.from_address}}> wrote: | |
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> | |
{{email.new_html}}{% unless email.agent %}<br/>{%endunless%} | |
{% if email.agent %} | |
{% if email.agent.signature %} | |
<div style="margin-top:10px;">{{email.agent.signature | newline_to_br}}</div> | |
{% else %} | |
<p> | |
--<br /> | |
{{email.agent.name_public}}<br /> | |
</p> | |
{% endif %} | |
{% endif %} | |
{% endif %} | |
<br /> | |
{% endfor %} | |
{% for i in (1..threadlength) %} {{ '</blockquote><br/>' }} {% endfor %} | |
<br/> | |
<hr> | |
For your reference this is Case #: <span style="background-color: #d8f4fa;">{{case.id}}</span> |
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
{% assign emails = case.emails %}{% for email in emails reversed %}{{email.new_text}} | |
{% if email.agent %} | |
-- | |
{% if email.agent %}{% if email.agent.signature %}{{email.agent.signature | strip_html }}{%else%}{{email.agent.name_public}}{% endif %} | |
{% endif %} | |
{% if forloop.rindex0 != 0 %} | |
On {{email.send_at | date: "%b %d, %Y"}} at {{email.send_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}}, {% if email.agent %}{{email.agent.name_public}} <{{ email.from_address }}>{% else %}{% if customer.id == email.from_customer.id %}{{customer.first_name}} <{{ customer.email }}>{% else %}{{email.from_customer.first_name}} <{{ email.from_customer.email }}>{% endif %}{% endif %} wrote: | |
{% endif %}{% endif %}{% endfor %} | |
------------------------------------------------------ | |
For your reference this is Case #: {{case.id}} | |
------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment