Skip to content

Instantly share code, notes, and snippets.

@rbnrivera
rbnrivera / Textile syntax
Created December 29, 2011 22:18
Textile syntax
Bold Text
*this is bold*
===========================
Italic text
_this is italic_
{{case.group.emails}}
@rbnrivera
rbnrivera / gist:1386072
Created November 22, 2011 16:24
Forward template
<div style="color: #222; font-family: "Lucida Grande", Helvetica, Arial, Verdana, sans-serif; font-size:12px; width:800px;">
<div style="margin: 0px 0px 10px 10px;">
The following case has been forwarded by {{customer.email}} for your review:
</div>
@rbnrivera
rbnrivera / gist:1367951
Created November 15, 2011 18:51
Agent signature
{% if email.agent.signature %}
<div style="margin-top:10px;">
{{email.agent.signature | newline_to_br}}
</div>
{% endif %}
@rbnrivera
rbnrivera / gist:1367809
Created November 15, 2011 18:02
Paragraphs
#support-main .article-content p {
margin: 15px;
}
@rbnrivera
rbnrivera / gist:1365682
Created November 15, 2011 00:25
Wdiget Email Form
<!--Insert New Email for Mobile -->
{% elsif page == "email_new" %}
<script type="text/javascript">
<!--
window.location = "http://help.instagram.com/customer/widget/emails/new"
//-->
</script>
<!--End Mobile Email insertion -->
{% for first_interaction in case.interactions limit:1 %}
{% if first_interaction.os %}
<div class="agent_ticket_section" style="display:inline-block;width:120px;vertical-algin:top;"> <strong>OS:</strong><br/>{{first_interaction.os}}<br/>{{first_interaction.os_version}} </div>
{% endif %}
{% if first_interaction.browser %}
<div class="agent_ticket_section" style="display:inline-block;width:120px;vertical-algin:top;"> <strong>Browser:</strong><br/>{{first_interaction.browser}}<br/>{{first_interaction.browser_version}} </div>
{% endif %}
{% endfor %}
https://qivantage.infusionsoft.com/Contact/manageContact.jsp?view=edit&ID={{customer.custom_infusioncustomerid}}
@rbnrivera
rbnrivera / gist:1329449
Created November 1, 2011 00:00
Override Email Widget image
<script type='text/javascript'>
$("#assistly-widget-2 a").html("Support");
$("#assistly-widget-2 a").css("background-image", "none");
</script>
@rbnrivera
rbnrivera / gist:1329446
Created October 31, 2011 23:58
Override Chat Widget image
<script type='text/javascript'>
$("#assistly-widget-1 a").html("Support");
$("#assistly-widget-1 a").css("background-image", "none");
</script>