{% set b = button %} {% set _obj = version if amo.HAS_COMPAT[addon.type] else addon %} {% set compat = _obj.compatible_apps[APP] if _obj else None %}

{% set links = b.links() %} {% if b.is_premium and not b.can_be_purchased %} {{ _('Not ready for purchase.') }} {% elif not links %} {{ _('No compatible versions') }} {% endif %} {% if settings.ADD_TO_MOBILE %} {% if APP == amo.MOBILE %} {% if request.user.is_authenticated() %} {% set action = url('collections.alter', request.amo_user.username, 'mobile', 'add') %} {% endif %} {% if installed %} {% set extra, text = 'status ok', _('Added to Mobile') %} {% else %} {% set text = _('Add to Mobile') %} {% endif %}

{{ csrf() }}
{% endif %} {% endif %} {% for link in links %} {% set extra = "platform " + link.os.shortname if link.os else "" %} {% include 'addons/includes/install_button.html' %} {% endfor %}

{# install #} {% if b.detailed %} {% if addon.privacy_policy %} {{ _('Privacy Policy') }} {% endif %} {% if addon.is_unreviewed() %}

{% if addon.is_webapp() %} {% trans url=url('pages.faq') + "#unreviewed" %} This app has not been reviewed by Mozilla. Learn more {% endtrans %} {% else %} {% trans url=url('pages.faq') + "#unreviewed" %} This add-on has not been reviewed by Mozilla. Learn more {% endtrans %} {% endif %}

{% elif b.lite %}

{% trans url=url('pages.faq') + "#preliminary" %} This add-on has been preliminarily reviewed by Mozilla. Learn more {% endtrans %}

{% elif addon.is_selfhosted() %}

{{ _("This add-on is hosted on the developer's own website and has not been reviewed by Mozilla.") }}

{% endif %} {% endif %} {% if waffle.switch('d2c-buttons') and version.is_compatible %} {% with reasons=version.is_compatible[1] %} {% endwith %} {% endif %}
{# install-shell #} {% if addon.is_webapp() %} {% include 'addons/includes/apps_error_msg.html' %} {% endif %}