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

Commit

Permalink
make disabled install button and purchasing setup more obvious (bug 7…
Browse files Browse the repository at this point in the history
…51710)
  • Loading branch information
cvan committed May 4, 2012
1 parent 52fa4a0 commit 97f0d3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
12 changes: 1 addition & 11 deletions mkt/detail/templates/detail/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,7 @@ <h3 class="hidden">{{ _('Categories') }}</h3>
{{ _('Purchased') }}</span>
{% elif product.can_purchase() %}
{% if user_data(amo_user)['pre_auth'] %}
<span class="approval checkmark">{{ _('PayPal pre-approval') }}
</span>
{% else %}
<form method="post" id="preapproval-shortcut"
action="{{ product.get_detail_url('purchase.preapproval') }}">
{{ csrf() }}
<input type="hidden" name="currency" value="USD">
<a class="approval-pitch" href="#">
{{ _('Set up purchasing') }}
</a>
</form>
<span class="approval checkmark">{{ _('PayPal pre-approval') }}</span>
{% endif %}
{% endif %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion mkt/detail/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def test_paid_no_preapproval_authenticated(self):
password='password')
self.make_premium(self.webapp)
doc = self.get_pq()
eq_(doc('.approval-pitch').length, 1)
eq_(doc('.approval-pitch').length, 0)
eq_(doc('.approval.checkmark').length, 0)

def test_paid_preapproval_enabled(self):
Expand Down
4 changes: 2 additions & 2 deletions mkt/templates/mkt/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@
{% include 'purchase/message.html' %}

<script type="text/template" id="noApps">
<div class="noApps">You need a
<div class="noApps">You need to be using
<a href="https://wiki.mozilla.org/Marketplace/Mozillian_Preview">
supported browser</a> to install this app.</div>
Firefox Nightly</a> to install this app.</div>
</script>

{% if not logged %}
Expand Down

0 comments on commit 97f0d3c

Please sign in to comment.