{% extends "base_modal.html" if is_ajax else "impala/base_shared.html" %}
{% block classes %}paypal-modal{% endblock %}
{% block content %}
{% if user.is_authenticated() and addon.has_purchased(user.get_profile()) %}
If installation does not automatically begin, please click here.{{ _('Purchased App') }}
{{ _("You've already bought this app!") }}
{% else %}
{{ _('Purchased Add-on') }}
{{ _("You've already bought this add-on!") }}
{% endif %}
{% trans manifest_url=addon.manifest_url if addon.is_webapp() else '',
class='trigger_app_install' if addon.is_webapp() else 'trigger_download',
receipt='receipt',
href='#' if addon.is_webapp() else download %}
{{ loc('Complete your purchase with PayPal. No PayPal account is necessary.') }}
{% else %}{{ loc('You need to be logged in to download and install apps to your browser.') }}
{% endif %}