From ebedceb3bd914cbacf3926a8ba733a6aa0d54a71 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Thu, 19 Jul 2012 11:35:08 -0400 Subject: [PATCH] Dont show announcement to pro --- snipts/templates/snipts/detail.html | 4 +++- snipts/templates/snipts/list.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/snipts/templates/snipts/detail.html b/snipts/templates/snipts/detail.html index 552f619..856be72 100644 --- a/snipts/templates/snipts/detail.html +++ b/snipts/templates/snipts/detail.html @@ -44,7 +44,9 @@ {% block content %}
-
Announcing Snipt Pro. Support Snipt and get exclusive features for only $19/year.
+ {% if not request.user.profile.is_pro %} +
Announcing Snipt Pro. Support Snipt and get exclusive features for only $19/year.
+ {% endif %} {% with 'true' as detail %} {% include "snipts/snipt-list.html" %} {% endwith %} diff --git a/snipts/templates/snipts/list.html b/snipts/templates/snipts/list.html index 3d29bc7..801abc4 100644 --- a/snipts/templates/snipts/list.html +++ b/snipts/templates/snipts/list.html @@ -13,7 +13,9 @@ {% block content %}
-
Announcing Snipt Pro. Support the development of Snipt and get exclusive features for only $19/year.
+ {% if not request.user.profile.is_pro %} +
Announcing Snipt Pro. Support the development of Snipt and get exclusive features for only $19/year.
+ {% endif %} {% autopaginate snipts 10 %} {% for snipt in snipts %} {% include "snipts/snipt-list.html" %}