<commit_before>{% load i18n %}
{% load lfs_tags %}
<table class="order lfs-default">
    <tr>
        <th colspan="4">
            {% trans 'General' %}
        </th>
    </tr>
    <tr>
        <td class="label" width="25%">
            {% trans 'Customer name' %}:
        </td>
        <td width="25%">
            {{ current_order.customer_firstname }} {{ current_order.customer_lastname }}
        </td>
        <td class="label" width="25%">
            {% trans 'Date' %}:
        </td>
        <td width="25%">
            {{ current_order.created|date:_("DATETIME_FORMAT") }}
        </td>
    </tr>
    <tr>
        <td class="label">
            {% trans 'E-mail' %}:
        </td>
        <td>
            <a href="mailto:{{ current_order.customer_email }}">
                {{ current_order.customer_email }}
            </a>
        </td>
        <td class="label">
            {% trans 'State' %}:
        </td>
        <td>
            {{ current_order.get_state_display }}
        </td>
    </tr>
    <tr>
        <td class="label">
            {% trans 'Phone' %}:
        </td>
        <td>
            {{ current_order.shipping_phone }}
        </td>
        <td class="label">
            {% trans 'Total' %}:
        </td>
        <td>
            {{ current_order.price|currency:request}}
        </td>
    </tr>

</table>
<table class="order lfs-default padding-top-middle">
    <tr>
        <th width="25%">
            {% trans 'Invoice address' %}
        </th>
        <th width="25%">
            {% trans 'Shipping address' %}
        </th>
        <th width="25%">
            {% trans 'Shipping method' %}
        </th>
        <th width="25%">
            {% trans 'Payment method' %}
        </th>
    </tr>
    <tr>
        <td>
            <div>
                {{ current_order.invoice_firstname }}
            </div>
            <div>
                {{ current_order.invoice_lastname }}
            </div>
            <div>
                {{ current_order.invoice_line1 }}
            </div>
            <div>
                {{ current_order.invoice_line2 }}
            </div>
            <div>
                {{ current_order.invoice_city }}
            </div>
            <div>
                {{ current_order.invoice_state }}
            </div>
            <div>
                {{ current_order.invoice_code }}
            </div>
            <div>
                {{ current_order.invoice_country }}
            </div>
            <div>
                {{ current_order.invoice_phone }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.shipping_firstname }}
            </div>
            <div>
                {{ current_order.shipping_lastname }}
            </div>
            <div>
                {{ current_order.shipping_line1 }}
            </div>
            <div>
                {{ current_order.shipping_line2 }}
            </div>
            <div>
                {{ current_order.shipping_city }}
            </div>
            <div>
                {{ current_order.shipping_state }}
            </div>
            <div>
                {{ current_order.shipping_code }}
            </div>
            <div>
                {{ current_order.shipping_country }}
            </div>
            <div>
                {{ current_order.shipping_phone }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.shipping_method }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.payment_method.name }}
            </div>
            {% ifequal current_order.payment_method.id 1 %}
                <div>
                    {{ current_order.account_number }}
                </div>
                <div>
                    {{ current_order.bank_identification_code }}
                </div>
                <div>
                    {{ current_order.bank_name }}
                </div>
                <div>
                    {{ current_order.depositor }}
                </div>
            {% endifequal %}
        </td>
    </tr>

</table>

<table class="order lfs-default padding-top-middle">
    <tr>
        <th width="25%">
            {% trans 'SKU' %}
        </th>
        <th>
            {% trans 'Name' %}
        </th>
        <th class="number">
            {% trans 'Amount' %}
        </th>
        <th class="number">
            {% trans 'Price' %}
        </th>
        <th class="number">
            {% trans 'Total' %}
        </th>
    </tr>
    {% for item in current_order.items.all %}
        <tr>
            <td>
               {{ item.product_sku }}
            </td>
            <td>
                {{ item.product_name }}
                {% for property in item.product.get_variant_properties %}
                    <div>
                        {{ property.title }} : {{ property.value }} {{ property.unit|safe }}
                    </div><commit_msg>Show product image on order detail page<commit_after>{% load i18n %}
{% load lfs_tags %}
<table class="order lfs-default">
    <tr>
        <th colspan="4">
            {% trans 'General' %}
        </th>
    </tr>
    <tr>
        <td class="label" width="25%">
            {% trans 'Customer name' %}:
        </td>
        <td width="25%">
            {{ current_order.customer_firstname }} {{ current_order.customer_lastname }}
        </td>
        <td class="label" width="25%">
            {% trans 'Date' %}:
        </td>
        <td width="25%">
            {{ current_order.created|date:_("DATETIME_FORMAT") }}
        </td>
    </tr>
    <tr>
        <td class="label">
            {% trans 'E-mail' %}:
        </td>
        <td>
            <a href="mailto:{{ current_order.customer_email }}">
                {{ current_order.customer_email }}
            </a>
        </td>
        <td class="label">
            {% trans 'State' %}:
        </td>
        <td>
            {{ current_order.get_state_display }}
        </td>
    </tr>
    <tr>
        <td class="label">
            {% trans 'Phone' %}:
        </td>
        <td>
            {{ current_order.shipping_phone }}
        </td>
        <td class="label">
            {% trans 'Total' %}:
        </td>
        <td>
            {{ current_order.price|currency:request}}
        </td>
    </tr>

</table>
<table class="order lfs-default padding-top-middle">
    <tr>
        <th width="25%">
            {% trans 'Invoice address' %}
        </th>
        <th width="25%">
            {% trans 'Shipping address' %}
        </th>
        <th width="25%">
            {% trans 'Shipping method' %}
        </th>
        <th width="25%">
            {% trans 'Payment method' %}
        </th>
    </tr>
    <tr>
        <td>
            <div>
                {{ current_order.invoice_firstname }}
            </div>
            <div>
                {{ current_order.invoice_lastname }}
            </div>
            <div>
                {{ current_order.invoice_line1 }}
            </div>
            <div>
                {{ current_order.invoice_line2 }}
            </div>
            <div>
                {{ current_order.invoice_city }}
            </div>
            <div>
                {{ current_order.invoice_state }}
            </div>
            <div>
                {{ current_order.invoice_code }}
            </div>
            <div>
                {{ current_order.invoice_country }}
            </div>
            <div>
                {{ current_order.invoice_phone }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.shipping_firstname }}
            </div>
            <div>
                {{ current_order.shipping_lastname }}
            </div>
            <div>
                {{ current_order.shipping_line1 }}
            </div>
            <div>
                {{ current_order.shipping_line2 }}
            </div>
            <div>
                {{ current_order.shipping_city }}
            </div>
            <div>
                {{ current_order.shipping_state }}
            </div>
            <div>
                {{ current_order.shipping_code }}
            </div>
            <div>
                {{ current_order.shipping_country }}
            </div>
            <div>
                {{ current_order.shipping_phone }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.shipping_method }}
            </div>
        </td>
        <td>
            <div>
                {{ current_order.payment_method.name }}
            </div>
            {% ifequal current_order.payment_method.id 1 %}
                <div>
                    {{ current_order.account_number }}
                </div>
                <div>
                    {{ current_order.bank_identification_code }}
                </div>
                <div>
                    {{ current_order.bank_name }}
                </div>
                <div>
                    {{ current_order.depositor }}
                </div>
            {% endifequal %}
        </td>
    </tr>

</table>

<table class="order lfs-default padding-top-middle">
    <tr>
        <th width="25%">
            {% trans 'SKU' %}
        </th>
        <th>
            {% trans 'Name' %}
        </th>
        <th class="number">
            {% trans 'Amount' %}
        </th>
        <th class="number">
            {% trans 'Price' %}
        </th>
        <th class="number">
            {% trans 'Total' %}
        </th>
    </tr>
    {% for item in current_order.items.all %}
        <tr>
            <td>
               {{ item.product_sku }}
                {% if item.product.get_image.image %}
                <div>
                  <a href="{% url lfs_manage_product item.product.id %}">
                      <img alt="{{ item.product_name }}"
                         src="{{ item.product.get_image.image.url_100x100 }}" />
                   </a>
                </div>
                {% endif %}
            </td>
            <td>
                {{ item.product_name }}
                {% for property in item.product.get_variant_properties %}
                    <div>
                        {{ property.title }} : {{ property.value }} {{ property.unit|safe }}
                    </div>
{'fraction_non_alphanumeric': 0.14684571538981742, 'fraction_numerical': 0.005603323350400927, 'mean_word_length': 1.0466587584025306, 'pattern_counts': {'":': 0, '<': 262, '<?xml version=': 0, '>': 262, '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': '5318195', 'n_tokens_mistral': 3072, 'n_tokens_neox': 2877, 'n_words': 513}