Dont show announcement to pro

master
Nick Sergeant 2012-07-19 11:35:08 -04:00
parent 851908a6f2
commit ebedceb3bd
2 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,9 @@
{% block content %}
<section class="snipts" id="snipts">
<div class="alert alert-info site-notice">Announcing <a href="/pro/">Snipt Pro</a>. Support Snipt and get exclusive features for only $19/year.</div>
{% if not request.user.profile.is_pro %}
<div class="alert alert-info site-notice">Announcing <a href="/pro/">Snipt Pro</a>. Support Snipt and get exclusive features for only $19/year.</div>
{% endif %}
{% with 'true' as detail %}
{% include "snipts/snipt-list.html" %}
{% endwith %}

View File

@ -13,7 +13,9 @@
{% block content %}
<section class="snipts" id="snipts">
<div class="alert alert-info site-notice">Announcing <a href="/pro/">Snipt Pro</a>. Support the development of Snipt and get exclusive features for only $19/year.</div>
{% if not request.user.profile.is_pro %}
<div class="alert alert-info site-notice">Announcing <a href="/pro/">Snipt Pro</a>. Support the development of Snipt and get exclusive features for only $19/year.</div>
{% endif %}
{% autopaginate snipts 10 %}
{% for snipt in snipts %}
{% include "snipts/snipt-list.html" %}