<commit_before>{% extends '@StoreTemplate/Layout/_layout.html.twig' %}

{% block content %}
    <div class="order-list">
        <h1>{{ 'Orders'|trans }}</h1>
        {% for order in orders %}
        <dl class="order-item">
            <dt class="order-item-image">
                {{ 'Image'|trans }}
            </dt>
            <dd class="order-item-image">
                <img src="{{ order.orderLines.first.product.principalImage|resize({
                    width: 80,
                    height: 80,
                    type: 5 })
                }}" alt="{{ line.product.name }}" class="product-thumbnail" />
            </dd>
            <dt class="order-item-id">
                {{ 'Number of order'|trans }}
            </dt>
            <dd class="order-item-id">
                <a href="{{ url('store_order_view', { id: order.id }) }}" class="order-title">{{ 'Order #'|trans }}{{ order.id }}</a>
            </dd>
            <dt class="order-item-state">{{ 'State'|trans }}</dt>
            <dd class="order-item-state">{{ order.lastOrderHistory.state }}</dd>
            <dt class="order-item-date">{{ 'Date'|trans }}</dt>
            <dd class="order-item-date">{{ order.createdAt|date('d.m.Y') }}</dd>
            <dt class="order-item-total">{{ 'Total'|trans }}</dt>
            <dd class="order-item-total">{{ order.amount|print_convert_money() }}</dd>
        </dl>
        {% else %}
            There are no orders
        {% endfor %}
    </div>

{% endblock %}<commit_msg>Markup for there are no orders page<commit_after>{% extends '@StoreTemplate/Layout/_layout.html.twig' %}

{% block content %}
    <div class="order-list">
        <h1>{{ 'Orders'|trans }}</h1>
        {% for order in orders %}
        <dl class="order-item">
            <dt class="order-item-image">
                {{ 'Image'|trans }}
            </dt>
            <dd class="order-item-image">
                <img src="{{ order.orderLines.first.product.principalImage|resize({
                    width: 80,
                    height: 80,
                    type: 5 })
                }}" alt="{{ line.product.name }}" class="product-thumbnail" />
            </dd>
            <dt class="order-item-id">
                {{ 'Number of order'|trans }}
            </dt>
            <dd class="order-item-id">
                <a href="{{ url('store_order_view', { id: order.id }) }}" class="order-title">{{ 'Order #'|trans }}{{ order.id }}</a>
            </dd>
            <dt class="order-item-state">{{ 'State'|trans }}</dt>
            <dd class="order-item-state">{{ order.lastOrderHistory.state }}</dd>
            <dt class="order-item-date">{{ 'Date'|trans }}</dt>
            <dd class="order-item-date">{{ order.createdAt|date('d.m.Y') }}</dd>
            <dt class="order-item-total">{{ 'Total'|trans }}</dt>
            <dd class="order-item-total">{{ order.amount|print_convert_money() }}</dd>
        </dl>
        {% else %}
            <div class="empty-page">
                <i class="fa fa-shopping-cart fa-3x"></i>
                <h2 class="product-title">{{ "There are no orders"|trans}}</h2>
            </div>
        {% endfor %}
    </div>

{% endblock %}
{'fraction_non_alphanumeric': 0.19962335216572505, 'fraction_numerical': 0.0053358443188951665, 'mean_word_length': 1.7569204152249136, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '262716', 'n_tokens_mistral': 1014, 'n_tokens_neox': 958, 'n_words': 189}