Don't show Olark for non-trial/non-pro users.

master
Nick Sergeant 2014-07-28 09:39:58 -04:00
parent d06b6ab180
commit 47d63b0e6c
1 changed files with 39 additions and 37 deletions

View File

@ -417,7 +417,8 @@
{% include 'snipts/snipt-edit-js-template.html' %}
</div>
{% endblock %}
{% if not debug %}
{% if request.user.profile.get_account_age <= 7 or request.user.profile.is_pro %}
{% if not debug %}
{% block olark %}
<!-- begin olark code -->
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
@ -456,6 +457,7 @@
{% endif %}
{% endblock %}
{% endif %}
{% endif %}
{% include 'analytics.html' %}