From 47d63b0e6c6e46d205fe66c69babb2592b4d42f9 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 28 Jul 2014 09:39:58 -0400 Subject: [PATCH] Don't show Olark for non-trial/non-pro users. --- templates/base.html | 76 +++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 37 deletions(-) diff --git a/templates/base.html b/templates/base.html index 806b0ec..a62830e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -417,45 +417,47 @@ {% include 'snipts/snipt-edit-js-template.html' %} {% endblock %} -{% if not debug %} - {% block olark %} - - - +{% if request.user.profile.get_account_age <= 7 or request.user.profile.is_pro %} + {% if not debug %} + {% block olark %} + + + - {% if request.user.is_authenticated %} - - {% endif %} + {% if request.user.is_authenticated %} + + {% endif %} - {% endblock %} + {% endblock %} + {% endif %} {% endif %} {% include 'analytics.html' %}