Last active
November 11, 2016 21:19
-
-
Save amandachiuchiu/634c28c91cd18b4cbd962eb3611384f6 to your computer and use it in GitHub Desktop.
This file contains 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_reply_theme %} | |
{% assign threadlength = emails.size|minus:1 %} | |
{% for email in emails reversed %} | |
{% if forloop.first %} | |
{{email.new_html}} | |
{% if email.agent %} | |
<!--- custom agent signature goes here and replaces the following few lines --> | |
{% 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 %} | |
<!--- end of custom agent signature --> | |
{% 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 %} | |
{% else %} | |
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> | |
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:<br/><br /> | |
{{email.new_html}} | |
{% if email.agent %} | |
<!--- custom agent signature goes here and replaces the following few lines --> | |
{% 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 %} | |
<!--- end of custom agent signature --> | |
{% endif %} | |
{% endif %} | |
<br /> | |
{% endfor %} | |
{% for i in (1..threadlength) %} {{ '</blockquote>' }} {% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment