This file contains hidden or 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
<div class="agent_ticket_section"> | |
{{csat}} | |
</div> | |
<div class="agent_ticket_section"> | |
{{subject}} |
This file contains hidden or 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
{% unless current_user == nil or current_user.is_guest %} | |
{% if current_user.customer.custom_portal_access == "true" || current_user.customer.custom_portal_access == true || current_user.customer.custom_portal_access == "1" || current_user.customer.custom_portal_access == 1 %} | |
Success! You'll want ALL code currently in your 'Layout' to go here so the site loads. | |
{% else %} | |
If the user sees this text, it means they logged in, but not manually approved. | |
{% endif %} | |
{% else %} | |
If the user sees this text, it means they are not logged in. So you'll likely want to prompt them to login or auto redirect them to login page here. | |
{% endunless %} |
This file contains hidden or 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
{% unless current_user == nil or current_user.is_guest %} | |
{% assign email_domain = current_user.customer.email | split: '@' %} | |
{% if email_domain[1] contains "sitechcs.com" %} | |
Success! You'll want ALL code currently in your 'Layout' to go here so the site loads. | |
{% else %} | |
If the user sees this text, it means they logged in, but their email domain isn't approved. | |
{% endif %} | |
{% else %} | |
If the user sees this text, it means they are not logged in. So you'll likely want to prompt them to login or auto redirect them to login page here. | |
{% endunless %} |
This file contains hidden or 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
<!-- Add this right above {{form_end}} --> | |
<div class="timezone-div">{{ customer_custom_time_zone }}</div> |
This file contains hidden or 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
<!-- Replace this: --> | |
{{ rate_block }} | |
<!-- with this: --> | |
<style> | |
#rate_article a { | |
text-decoration: none; | |
} |
This file contains hidden or 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
<script> | |
var timeout = 180000; | |
var redirectTo = "/customer/portal/emails/new"; | |
setTimeout('redirectToEmail()', timeout) | |
function redirectToEmail() | |
{ | |
if( "none" == $("#chat_send_area").css('display')) { | |
alert("We're sorry, but we are no longer available to chat at this time. To leave us a note, just fill out the contact form on the next screen."); | |
window.top.location.href = redirectTo; | |
} |
This file contains hidden or 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
<script>$(function() { $(".verified img").prop("src", "http://i.imgur.com/7zvSABZ.png") });</script> |
This file contains hidden or 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
require 'desk_api' | |
ticket = DeskApi.cases.create({ | |
external_id: 123456, | |
subject: 'Subject', | |
description: 'Description', | |
priority: 1, | |
status: 'resolved', | |
type: 'email', | |
labels: ['Label 1', 'Label 2'], |
This file contains hidden or 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
{% if desk.system.language == "ar" %} | |
<style> body { direction:rtl; } </style> | |
{% endif %} |
This file contains hidden or 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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<style> | |
a.form-link { | |
display: block; | |
box-sizing: border-box; |