Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
move upsell under the disable-payments waffle
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Aug 30, 2012
1 parent c5eff20 commit cac1541
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions mkt/detail/templates/detail/app.html
Expand Up @@ -179,19 +179,21 @@ <h3>{{ _('Developer Comments') }}</h3>
{{ _('Report Abuse') }}</a></li>
{% endif %}
</ul>
{% set upsell = product.upsell %}
{# no payments for now #}
{# if upsell %}
{% set prm = upsell.premium_addon %}
{% if prm %}
<a id="upsell" class="narrow"
href="{{ prm.get_url_path()|urlparams(src='mkt-detail-upsell') }}">
<span class="avail">{{ _('Premium version available') }}</span>
<img class="icon" src="{{ prm.get_icon_url(16) }}">
<span class="name">{{ prm.name }}</span>
</a>
{% if not waffle.switch('disabled-payments') %}
{% set upsell = product.upsell %}
{# no payments for now #}
{% if upsell %}
{% set prm = upsell.premium_addon %}
{% if prm %}
<a id="upsell" class="narrow"
href="{{ prm.get_url_path()|urlparams(src='mkt-detail-upsell') }}">
<span class="avail">{{ _('Premium version available') }}</span>
<img class="icon" src="{{ prm.get_icon_url(16) }}">
<span class="name">{{ prm.name }}</span>
</a>
{% endif %}
{% endif %}
{% endif #}
{% endif %}
{% if content_ratings %}
<div class="content-ratings c">
<h3>
Expand Down

0 comments on commit cac1541

Please sign in to comment.