{% 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 addon.is_webapp() %}

{{ _('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 %}

If installation does not automatically begin, please click here.

{% endtrans %}

{% else: %}
{% if addon.is_webapp() %}

{{ _('Purchase App') }}

{% else %}

{{ _('Purchase Add-on') }}

{% endif %}
{{ addon.premium.get_price_locale() }} {% if currencies|length > 1 %}
change currency {% endif %}
{{ addon.name }}
{% if user.is_authenticated() %}
{% trans user_email=user.email %} You are logged in as {{ user_email }}! {% endtrans %}
{{ csrf() }}

{{ 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 %}
{% endif %} {% endblock %}