{% extends 'detail/protected_app.html' %} {% set amouser = request.amo_user if request.user.is_authenticated() else None %} {% set can_review = product.can_review(amouser) %} {% set purchased = amouser and product.pk in amouser.purchase_ids() %} {% block title %}{{ mkt_page_title(product.name) }}{% endblock %} {% block bodyclass %}detail{% endblock %} {% block extrahead %} {{ super() }} {% for preview in product.all_previews %} {% endfor %} {% endblock %} {# Breadcrumbs show just one category for now. #} {% set cats = product.all_categories %} {% set first_cat = cats[0] if cats else None %} {% block content %} {% include 'purchase/error.html' %} {{ mkt_breadcrumbs(items=[(url('browse.apps'), _('Apps')), (None, product.name)]) }} {% if not (is_dev or is_admin) and not product.is_public() %}

{% if 'id' in request.GET %} #{{ product.id }} {% endif %} {{ product.name }}

{{ notification(product, amo, is_dev) }} {% else %}

{% if 'id' in request.GET %} #{{ product.id }} {% endif %} {{ product.name }}

{% if product.listed_authors %}

{{ users_list(product.listed_authors, size=3) }}

{{ product.listed_authors[0]|user_link }}

{% endif %} {% set categories = product.all_categories %} {% if is_author and product.is_premium() and product.premium %}

{{ product.premium.get_price_locale() }}

{% endif %} {% if cats %}

{% for category in cats %} {{ category }}{% if not loop.last %}, {% endif %} {% endfor %}

{% endif %}

{{ product|weekly_downloads }}

{{ device_list(product) }}
{% if product.is_public() %} {% if product.has_author(amo_user) %} {{ market_button(product, 'developer') }} {% else %} {{ market_button(product) }} {% endif %} {% if request.amo_user %} {% if purchased %} {{ _('Purchased') }} {% elif product.can_purchase() %} {% if user_data(amo_user)['pre_auth'] %} {{ _('PayPal pre-approval') }} {% endif %} {% endif %} {% endif %} {% elif product.has_author(amo_user) %} {{ market_button(product, 'developer') }} {% elif is_reviewer %} {{ market_button(product) }} {% endif %} {% if is_dev %}

{{ _('Manage') }}

{% endif %} {% if is_reviewer and product.is_pending() %}

{{ _('Approve / Reject') }}

{% endif %}
{{ notification(product, amo, is_dev) }}

{{ _('Installed!') }}

{% trans %} Launch this app from your Applications directory. {% endtrans %}

{% trans %} Launch this app from your Windows desktop or Start ► All Programs. {% endtrans %}

{% trans %} Launch this app from your Dash, Application picker, or Applications menu. {% endtrans %}

{% set upsell = product.upsell %} {% if upsell %} {% set prm = upsell.premium_addon %} {% if prm %}

{{ _('Premium version available') }}

{{ prm.name }}
{{ _('Read More') }}
{{ upsell.text|nl2br }}
{{ prm.get_price() }} {{ prm|weekly_downloads }}
{{ _('Premium version available') }} {{ prm.name }} {% endif %} {% endif %}
{% if product.description %} {{ _('More…') }} {% endif %}

{{ product.summary|nl2br }} {% if product.description %} {{ _('More…') }} {% endif %}

{% if product.description or product.developer_comments %}
{% if product.description %}
{{ product.description|nl2br }}
{% endif %} {% if product.developer_comments %}

{{ _('Developer Comments') }}

{{ product.developer_comments }}
{% endif %}
{% endif %}
{% if product.all_previews %}
{% endif %}
{% if waffle.switch('ratings') %}

{{ _('Reviews') }}

{% if reviews %} {{ product.average_rating|float|stars }} {% trans cnt=product.total_reviews, num=product.total_reviews|numberfmt %} {{ num }} review {% pluralize %} {{ num }} reviews {% endtrans %} {% endif %} {% if can_review %}

{{ _('Submit a Review') }}

{% elif not reviews %}

{{ _('This app is not yet rated.') }}

{% endif %} {% endif %}
{# TODO: When we retool desktop/tablet to look like mobile, we will for sure pare this down. But until then... code duplication :( #}
{{ _('Published') }}
{{ product.created|timelabel }}
{% endif %} {% endblock %}