<commit_before>{% extends 'layout/base.html' %}
{% from 'macros/datetime.html' import render_date, render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/misc.html' import render_faint, render_with_fallback %}
{% from 'macros/shop_admin.html' import render_order_payment_state %}
{% from 'macros/user.html' import render_user_avatar %}
{% set current_page = 'user_admin' %}
{% set title = 'Benutzer - %s'|format(user.screen_name) %}

{% block body %}

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

  <h2>Benutzerkonto</h2>
  {%- if user.has_avatar_image %}
  <div style="float: right; margin: 0 120px 0 1rem;">{{ render_user_avatar(user) }}</div>
  {%- endif %}
  <table class="index">
    <tr>
      <th>Benutzername</th>
      <td>{{ user.screen_name }}</td>
    </tr>
    <tr>
      <th>Erstellt</th>
      <td>{{ render_datetime(user.created_at) }}</td>
    </tr>
    <tr>
      <th>E-Mail-Adresse</th>
      <td>{{ user.email_address }}</td>
    </tr>
    <tr>
      <th>Aktiviert</th>
      <td>{{ render_icon('enabled' if user.enabled else 'disabled') }}</td>
    </tr>
    <tr>
      <th>Avatar</th>
      <td>{{ render_icon('enabled' if user.has_avatar_image else 'disabled') }}</td>
    </tr>
    <tr>
      <th>Orga</th>
      <td>{{ render_icon('enabled' if user.is_orga_for_any_brand else 'disabled') }}</td>
    </tr>
  </table>

  <h2>Persönliche Daten</h2>
  <table class="index">
    <tr>
      <th>Voller Name</th>
      <td>{{ render_with_fallback(user.detail.full_name) }}</td>
    </tr>
    <tr>
      <th>Geburtsdatum</th>
      <td>
        {%- if user.detail.date_of_birth -%}
          {{ render_date(user.detail.date_of_birth, smart=False) }}
        {%- else -%}
          {{ render_faint('nicht angegeben') }}
        {%- endif -%}
      </td>
    </tr>
    <tr>
      <th>Anschrift</th>
      <td>
        {{- render_with_fallback(user.detail.street) }}<br/>
        {%- if user.detail.zip_code %}{{ user.detail.zip_code }}{% endif %}
        {{- render_with_fallback(user.detail.city) -}}
      </td>
    </tr>
    <tr>
      <th>Telefonnummer</th>
      <td>{{ render_with_fallback(user.detail.phone_number) }}</td>
    </tr>
  </table>

  <h2>Diverses</h2>
  <table class="index">
    <tr>
      <th>Legacy-ID</th>
      <td>{{ render_with_fallback(user.legacy_id) }}</td>
    </tr>
  </table>

  <h2>Bestellungen</h2>
  {%- if orders %}
  <table class="index">
    <thead>
      <tr>
        <th>Zeitpunkt</th>
        <th>Party</th>
        <th>Bezahlstatus</th>
      </tr>
    </thead>
    <tbody>
      {%- for order in orders %}
      <tr>
        <td><a href="{{ url_for('shop_admin.order_view', id=order.id) }}">{{ render_datetime(order.created_at) }}</a></td>
        <td>{{ order.party.title }}</td>
        <td class="centered">{{ render_order_payment_state(order.payment_state) }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>
  {%- else %}
  {{ render_faint('keine') }}
  {%- endif %}

{%- endblock body %}
<commit_msg>Re-added missing whitespace between zip code and city.<commit_after>{% extends 'layout/base.html' %}
{% from 'macros/datetime.html' import render_date, render_datetime %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/misc.html' import render_faint, render_with_fallback %}
{% from 'macros/shop_admin.html' import render_order_payment_state %}
{% from 'macros/user.html' import render_user_avatar %}
{% set current_page = 'user_admin' %}
{% set title = 'Benutzer - %s'|format(user.screen_name) %}

{% block body %}

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

  <h2>Benutzerkonto</h2>
  {%- if user.has_avatar_image %}
  <div style="float: right; margin: 0 120px 0 1rem;">{{ render_user_avatar(user) }}</div>
  {%- endif %}
  <table class="index">
    <tr>
      <th>Benutzername</th>
      <td>{{ user.screen_name }}</td>
    </tr>
    <tr>
      <th>Erstellt</th>
      <td>{{ render_datetime(user.created_at) }}</td>
    </tr>
    <tr>
      <th>E-Mail-Adresse</th>
      <td>{{ user.email_address }}</td>
    </tr>
    <tr>
      <th>Aktiviert</th>
      <td>{{ render_icon('enabled' if user.enabled else 'disabled') }}</td>
    </tr>
    <tr>
      <th>Avatar</th>
      <td>{{ render_icon('enabled' if user.has_avatar_image else 'disabled') }}</td>
    </tr>
    <tr>
      <th>Orga</th>
      <td>{{ render_icon('enabled' if user.is_orga_for_any_brand else 'disabled') }}</td>
    </tr>
  </table>

  <h2>Persönliche Daten</h2>
  <table class="index">
    <tr>
      <th>Voller Name</th>
      <td>{{ render_with_fallback(user.detail.full_name) }}</td>
    </tr>
    <tr>
      <th>Geburtsdatum</th>
      <td>
        {%- if user.detail.date_of_birth -%}
          {{ render_date(user.detail.date_of_birth, smart=False) }}
        {%- else -%}
          {{ render_faint('nicht angegeben') }}
        {%- endif -%}
      </td>
    </tr>
    <tr>
      <th>Anschrift</th>
      <td>
        {{- render_with_fallback(user.detail.street) }}<br/>
        {%- if user.detail.zip_code %}{{ user.detail.zip_code }}{% endif %}
        {{ render_with_fallback(user.detail.city) -}}
      </td>
    </tr>
    <tr>
      <th>Telefonnummer</th>
      <td>{{ render_with_fallback(user.detail.phone_number) }}</td>
    </tr>
  </table>

  <h2>Diverses</h2>
  <table class="index">
    <tr>
      <th>Legacy-ID</th>
      <td>{{ render_with_fallback(user.legacy_id) }}</td>
    </tr>
  </table>

  <h2>Bestellungen</h2>
  {%- if orders %}
  <table class="index">
    <thead>
      <tr>
        <th>Zeitpunkt</th>
        <th>Party</th>
        <th>Bezahlstatus</th>
      </tr>
    </thead>
    <tbody>
      {%- for order in orders %}
      <tr>
        <td><a href="{{ url_for('shop_admin.order_view', id=order.id) }}">{{ render_datetime(order.created_at) }}</a></td>
        <td>{{ order.party.title }}</td>
        <td class="centered">{{ render_order_payment_state(order.payment_state) }}</td>
      </tr>
      {%- endfor %}
      <tr>
    </tbody>
  </table>
  {%- else %}
  {{ render_faint('keine') }}
  {%- endif %}

{%- endblock body %}

{'fraction_non_alphanumeric': 0.20493704440026508, 'fraction_numerical': 0.005301524188204109, 'mean_word_length': 2.638939119951778, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 0, '>': 223, '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': '4670238', 'n_tokens_mistral': 2458, 'n_tokens_neox': 2311, 'n_words': 399}