<commit_before>{% extends 'layout/base.html' %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_admin.html' import render_user_admin_link %}
{% set current_page = 'shop_admin.orders' %}
{% set title = 'Shop - Bestellungen auflisten' %}

{% block body %}

  <h1>{{ title }}</h1>

  <table class="index">
    <thead>
      <tr>
        <th colspan="2">Besteller</th>
        <th>Zeitpunkt</th>
        <th>Bezahlstatus</th>
      </tr>
    </thead>
    <tbody>
      {%- for order in orders.items %}
      <tr>
        <td>{{ render_user_admin_link(order.placed_by) }}</td>
        <td>{{ order.first_names }} {{ order.last_name }}</td>
        <td>{{ render_datetime(order.created_at) }}</td>
        <td>{{ order._payment_status }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>

{{ render_pagination_nav(orders, '.order_index_for_party') }}

{%- endblock body %}<commit_msg>Fixed order index.<commit_after>{% extends 'layout/base.html' %}
{% from 'macros/datetime.html' import render_datetime %}
{% from 'macros/pagination.html' import render_pagination_nav %}
{% from 'macros/user_admin.html' import render_user_admin_link %}
{% set current_page = 'shop_admin.orders' %}
{% set title = 'Shop - Bestellungen auflisten' %}

{% block body %}

  <h1>{{ title }}</h1>

  <table class="index">
    <thead>
      <tr>
        <th colspan="2">Besteller</th>
        <th>Zeitpunkt</th>
        <th>Bezahlstatus</th>
      </tr>
    </thead>
    <tbody>
      {%- for order in orders.items %}
      <tr>
        <td>{{ render_user_admin_link(order.placed_by) }}</td>
        <td>{{ order.first_names }} {{ order.last_name }}</td>
        <td>{{ render_datetime(order.created_at) }}</td>
        <td>{{ order.payment_status.name }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>

{{ render_pagination_nav(orders, '.order_index_for_party', {'party_id': party.id}) }}

{%- endblock body %}
{'fraction_non_alphanumeric': 0.18932278793870488, 'fraction_numerical': 0.002965892239248641, 'mean_word_length': 3.0, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '683385', 'n_tokens_mistral': 764, 'n_tokens_neox': 703, 'n_words': 136}