{% extends 'layouts/base.html' %} {% load i18n %} {% load pyaa %} {% load pyaa_format %} {% load pyaa_status %} {% load static %} {% block content %} {% url 'account_profile' as url_account_profile %}

{% translate "title.account-product-purchases" %}

{% if page_obj %}
{% for purchase in page_obj %}
{{ purchase.product.name }}

{{ purchase.product.name }}

{% translate "model.field.price" %}: {{ purchase.price|format_currency:purchase.currency }}

{% translate "model.field.created-at" %}: {{ purchase.created_at }}

{% translate "model.field.status" %}: {{ purchase.get_status_display }}

{% if purchase.status == 'approved' %} {% with files=purchase.product.get_active_files %} {% if files %}

{% translate "title.shop-product-files" %}

{% for file in files %}
File

{{ file.name }}

{% if file.description %}

{{ file.description }}

{% endif %}

{% if file.file_type %}{{ file.file_type }} ยท {% endif %} {% if file.file_size %}{{ file.file_size|filesizeformat }}{% endif %}

{% endfor %}
{% endif %} {% endwith %} {% endif %}
{% endfor %}
{% include 'partials/paginator.html' %} {% else %} {% include 'partials/empty_data.html' %} {% endif %}
{% translate "button.back" %}
{% endblock content %}