Skip to content

Instantly share code, notes, and snippets.

@rbnrivera
rbnrivera / gist:1328553
Created October 31, 2011 19:16
Custom Fields
<div class="input" ><span class="form_label">Your custom field:</span>
{{ ticket_custom_customfieldkey }}
</div>
@rbnrivera
rbnrivera / gist:1305190
Created October 21, 2011 22:48
Search box styling
{% if page == 'page_index' %}
ul.ui-autocomplete {
width:600px !important;
}
{% else %}
ul.ui-autocomplete {
width:140px !important;
}
{%endif%}
@rbnrivera
rbnrivera / gist:1298787
Created October 19, 2011 16:08
Replace HTML
<script>
$("h2").text("Hello world!");
</script>
<div class="input"><span class="form_label">Your name:</span>
{{ interaction_name }}
</div>
<div class="input"><span class="form_label">Last name:</span><br />
<input class="default l" type="text" name="customer[last_name]" id="customer_last_name">
</div>
@rbnrivera
rbnrivera / gist:1279551
Created October 11, 2011 21:44
First & Last Name
<div class="input"><span class="form_label">Your name:</span>
{{ interaction_name }}
</div>
<div class="input"><span class="form_label">Last name:</span><br />
<input class="default l" type="text" name="customer[last_name]" id="customer_last_name" width="500px">
@rbnrivera
rbnrivera / gist:1246806
Created September 28, 2011 02:03
custom customer field
<div class='input'><span class='form_label'>Choose your country</span>
{{ customer_custom_country }}
</div>
@rbnrivera
rbnrivera / gist:1243551
Created September 26, 2011 22:11
chat offline
$(document).ready(function() {
setTimeout(function(){
$(".assistly-widget a").html("Chat");
$(".assistly-widget span").html("");
}, 1000);
});
<div style="margin: 0px 0px 10px 10px;">
<img src="http://webassets.assistly.com/new/images/a-assistly-logo.gif" />
</div>
@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);
});
{{email.send_at | date: "%b %d, %Y" | upcase}} &nbsp;|&nbsp; {{email.send_at | in_time_zone: site.timezone | date: "%I:%M%p %Z"}}