{% set template_title = "MY_DOWNLOADS"|translate %} {% capture append = "oxidBlock_title" %}

{{ template_title }}

{% endcapture %} {% capture append = "oxidBlock_content" %} {% set oOrderFilesList = oView.getOrderFilesList() %} {% if not empty(oOrderFilesList) and oOrderFilesList.count() %}
    {% for oOrderArticle in oView.getOrderFilesList() %}
  1. {% for oOrderFile in oOrderArticle.oxorderfiles %}
    {{ oOrderArticle.oxarticletitle }} – {{ translate({ ident: "ORDER_NUMBER" }) }}: {{ oOrderArticle.oxordernr }}, {{ oOrderArticle.oxorderdate|date_format("%d.%m.%Y") }}
    {% if oOrderFile.isPaid() or not oOrderFile.oxorderfiles__oxpurchasedonly.value %} {{ translate({ ident: "DOWNLOADS_DOWNLOAD_TOOLTIP" }) }} {% endif %}
    {% if oOrderFile.isPaid() or not oOrderFile.oxorderfiles__oxpurchasedonly.value %} {% if oOrderFile.isValid() %} {{ translate({ ident: "FILE_ATTRIBUTES_FILENAME" }) }} {{ oOrderFile.oxorderfiles__oxfilename.value }}
    {% include "page/account/inc/file_attributes.html.twig" %} {% else %} {{ oOrderFile.oxorderfiles__oxfilename.value }} {{ translate({ ident: "DOWNLOAD_LINK_EXPIRED_OR_MAX_COUNT_RECEIVED" }) }} {% endif %} {% else %} {{ oOrderFile.oxorderfiles__oxfilename.value }} {{ translate({ ident: "DOWNLOADS_PAYMENT_PENDING" }) }} {% endif %}
    {% endfor %}
  2. {% endfor %}
{% else %} {% endif %} {{ insert_tracker({title: template_title}) }} {% endcapture %} {% capture append = "oxidBlock_sidebar" %} {% include "page/account/inc/account_menu.html.twig" with {active_link: "downloads"} %} {% endcapture %} {% include "layout/page.html.twig" with {sidebar: "left", blHideBreadcrumb: true} %}