Skip to content

Instantly share code, notes, and snippets.

@danieljohnmorris
Created September 16, 2014 18:56
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 danieljohnmorris/4730efacfb6b7030c1e9 to your computer and use it in GitHub Desktop.
Save danieljohnmorris/4730efacfb6b7030c1e9 to your computer and use it in GitHub Desktop.
desk replies - old
<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 id="section-header" 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 email.agent %}
<span class="email-date" style="font-size:80%;">{{email.send_at | date: "%b %d, %Y" | upcase}} &nbsp;|&nbsp; {{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 class="email-body">{{email.new_html}}</div>
{% if email.agent.signature %}
<div class="email-signature" style="margin-top:10px;"> {{email.agent.signature | newline_to_br}}</div>
{% endif %}
{% if email.has_customer_feedback? %}
<hr />
<div id="section-customer-feedback" style="background-color:#fafafa; border:0; padding:2px;">
<div id="customer-feedback-question">{{email.customer_feedback.question}}</div>
{% if email.customer_feedback.yes_no_rating? %}
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating0_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating0_yes_no_img}}" alt="{{system.snippets.customer_feedback_poor}}" title="{{system.snippets.customer_feedback_poor}}"></a>
</span>
<span style="margin: 0 10px 0 10px;">|</span>
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating3_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating3_yes_no_img}}" alt="{{system.snippets.customer_feedback_good}}" title="{{system.snippets.customer_feedback_good}}"></a>
</span>
{% endif %}
{% if email.customer_feedback.four_star_rating? %}
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating0_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating0_four_star_img}}" alt="{{system.snippets.customer_feedback_poor}}" title="{{system.snippets.customer_feedback_poor}}"></a>
</span>
<span style="margin: 0 10px 0 10px;">|</span>
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating1_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating1_four_star_img}}" alt="{{system.snippets.customer_feedback_fair}}" title="{{system.snippets.customer_feedback_fair}}"></a>
</span>
<span style="margin: 0 10px 0 10px;">|</span>
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating2_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating2_four_star_img}}" alt="{{system.snippets.customer_feedback_good}}" title="{{system.snippets.customer_feedback_good}}"></a>
</span>
<span style="margin: 0 10px 0 10px;">|</span>
<span class="customer-feedback-rating">
<a href="{{email.customer_feedback.rating3_link}}"><img style="vertical-align:middle;" src="{{email.customer_feedback.rating3_four_star_img}}" alt="{{system.snippets.customer_feedback_great}}" title="{{system.snippets.customer_feedback_great}}"></a>
</span>
{% endif %}
</div>
{% endif %}
<hr />
{% else %}
<span class="email-date" style="font-size:80%;">{{email.created_at | date: "%b %d, %Y" | upcase}} &nbsp;|&nbsp; {{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 %}
<div class="email-body">{{email.new_html}}</div>
<hr />
{% endif %}
{% endfor %}
<div id="section-footer" 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>
{{system.snippets.response_above_this_line}}
------------------------------------------------------------------------------------------------------------
{{system.snippets.customer}}: {% if customer.id == email.from_customer.id %}{{customer.name}}{% else %}{{email.from_customer.name}}{% endif %}
{{system.snippets.subject}}: {{case.subject}}
------------------------------------------------------------------------------------------------------------
{% assign emails = case.emails %}{% for email in emails reversed %}{% if email.agent %}
{{email.agent.name_public}} | {{email.send_at | date: "%b %d, %Y" | upcase}} | {{ email.send_at | in_time_zone: site.timezone | date: "%I:%M%p %Z" }}
{% else %}{% if customer.id == email.from_customer.id %}
{{customer.first_name}} | {{email.created_at | date: "%b %d, %Y" | upcase}} | {{email.created_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}} {% if forloop.last %} | {{system.snippets.original_message}} {% endif %}
{% else %}
{{email.from_customer.first_name}} | {{email.created_at | date: "%b %d, %Y" | upcase}} | {{email.created_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}}
{% endif %}{% endif %}
{{email.new_text}}
{% if email.agent %}{{email.agent.signature | strip_html }}{% endif %}{% if forloop.rindex0 != 0 %}
------------------------------------------------------------------------------------------------------------
{% endif %}{% endfor %}
------------------------------------------------------------------------------------------------------------
{{system.snippets.message_was_sent_to}}{{case.customer.email}} {{system.snippets.in_reference_to_case}}: {{case.id}}.
------------------------------------------------------------------------------------------------------------
{% if site.myportal_enabled %}
------------------------------------------------------------------------------------------------------------
{{system.snippets.email_reply_portal_link}}
{{portal_link}}
------------------------------------------------------------------------------------------------------------
{{system.snippets.email_reply_multi_recipient_msg}}
{{system.snippets.email_reply_multi_recipient_exp}}
------------------------------------------------------------------------------------------------------------
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment