Skip to content

Instantly share code, notes, and snippets.

<style type="text/css">
.assistly-widget a {
display: block;
background: url(http://imagepath.com/bttn.png) no-repeat !important;
background-position: -2px -80px !important;
height: 52px;
width: 100% !important;
overflow: hidden;
text-indent: -900px;
@rbnrivera
rbnrivera / emailTemplate
Created May 11, 2011 21:30
Email Template
<div style="color: #222; font-family: ''Lucida Grande'', Helvetica, Arial, Verdana, sans-serif; font-size:12px; width:800px;">
<div style="color: #ff0000; margin: 0px 0px 10px 10px;">
Please type your reply at the top of the email...
</div>
<div style="border-bottom: dotted 2px #bbb; margin:0px 0px 15px 10px;"></div>
@rbnrivera
rbnrivera / gist:1030545
Created June 16, 2011 23:17
chat drop down
<div class="input">
<select class="default xl custom_field_list " id="customer_custom2" name="customer[custom2]">
<option value="Option A">Option A</option>
<option value="Option B">Option B</option>
<option value="Option C">Option C</option>
</select>
{{ customer.custom_options }}
</div>
@rbnrivera
rbnrivera / gist:1076430
Created July 11, 2011 18:19
Case Subject
{% if customer.email == "[email protected]" %}{{case.subject}}{% else %}{{email.subject}}{% endif %}
{{case.status.name}} Case #{{case.id}} :: {{case.subject}} ( {% if case.user %} Assigned to {{case.user.name}}{% elsif case.group %} Assigned to {{case.group.name}}{% else %}Unassigned{% endif %} )
{% if agent_answer_count > 0 %}
<div class='replies agents'>
<h4>
{{ agent_answer_count }}
{{ site.agent_name_config }}
{{ 'Answer' | pluralize: agent_answer_count }}
</h4>
{% for answer in question.answers_agent %}
<div class='reply'>
<span class='gravatar-wrapper'>
@rbnrivera
rbnrivera / gist:1089999
Created July 18, 2011 16:24
Last interaction
{% for email in case.emails reversed %}
{% if email.first %}
{{email.body_html}}
{% endif %}
{% endfor %}
@rbnrivera
rbnrivera / Fields
Created July 27, 2011 21:55
Fields
<div class='input-block'>
<span class='label'>
How can we help? <span>(required)</span>
</span>
<div>
{{ ticket_custom_selectg }}
</div>
</div>
{{email.send_at | date: "%b %d, %Y" | upcase}} &nbsp;|&nbsp; {{email.send_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}}
@rbnrivera
rbnrivera / Chat offline
Created August 1, 2011 15:48
Link when chat is offline
$(document).ready(function() {
setTimeout(function(){
$(".assistly-widget a").html("Chat");
$(".assistly-widget span").html("<a href='http://www.assistly.com'>Assistly</a>");
}, 1000);
});