<commit_before>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/datetime.html' import render_date %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/orga_admin.html' import render_main_tabs with context %}
{% from 'macros/user_admin.html' import render_user_admin_link %}
{% from 'macros/user_avatar.html' import render_user_avatar_small %}
{% set current_page = 'orga_admin.persons' %}
{% set current_page_brand = brand %}
{% set title = 'Organisatoren' %}

{% block before_body %}
{{ render_main_tabs(current_page) }}
{%- endblock %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li><a href="{{ url_for('.persons') }}">{{ brand.title }}</a></li>
    </ol>
  </nav>
  <h1>{{ title }} {{ render_extra_in_heading(orgas|length) }}</h1>

  <ol class="actions">
    {%- if g.current_user.has_permission(OrgaTeamPermission.administrate_memberships) %}
    <li><a href="{{ url_for('.create_orgaflag_form', brand_id=brand.id) }}">{{ render_icon('add') }} Person zum Orga ernennen</a></li>
    {%- endif %}
    <li><a href="{{ url_for('.export_persons', brand_id=brand.id) }}" download="organizers_{{ brand.id }}.csv">{{ render_icon('download') }} Exportieren <small>(als Excel-CSV)</small></a></li>
  </ol>

  <table class="index wide">
    <thead>
      <tr>
        <th>Avatar</th>
        <th class="nowrap">
          <NAME><br>
          Benutzername<br>
          Geburtstag, Alter
        </th>
        <th class="nowrap">
          Wohnort<br>
          E-Mail-Adresse<br>
          Telefonnummer
        </th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      {%- for user in orgas|sort(attribute='screen_name') %}
      <tr>
        <td style="vertical-align: middle;">{{ render_user_avatar_small(user) }}</td>
        <td class="nowrap">
          {{ user.detail.full_name|fallback }}<br>
          {{ render_user_admin_link(user) }}<br>
          {%- if user.detail.date_of_birth %}
            {{ render_icon('birthday') }}
            {{ render_date(user.detail.date_of_birth) }}
            ({{ user.detail.age }} Jahre)
          {%- else %}
            {{ (render_icon('birthday') ~ ' nicht angegeben')|dim }}
          {%- endif %}
        </td>
        <td class="nowrap">
          {{ render_icon('location') }}
          {{ user.detail.street|fallback }}
          &middot;
          {%- if user.detail.zip_code %}{{ user.detail.zip_code }} {% endif %}
          {{ user.detail.city|fallback }}
          &middot;
          {{ user.detail.country|fallback }}
          <br>
          {{ render_icon('email') }} <a href="mailto:{{- user.email_address }}">{{ user.email_address|truncate(36, killwords=True, end='…') }}</a>
          <br>
          {%- if user.detail.phone_number %}
            {{ render_icon('phone') }}
            {{ user.detail.phone_number }}
          {%- else %}<commit_msg>Restyled brand organizers list<commit_after>{% extends 'layout/admin/base.html' %}
{% from 'macros/admin.html' import render_extra_in_heading %}
{% from 'macros/datetime.html' import render_date %}
{% from 'macros/icons.html' import render_icon %}
{% from 'macros/orga_admin.html' import render_main_tabs with context %}
{% from 'macros/user_admin.html' import render_user_admin_link %}
{% from 'macros/user_avatar.html' import render_user_avatar_small %}
{% set current_page = 'orga_admin.persons' %}
{% set current_page_brand = brand %}
{% set title = 'Organisatoren' %}

{% block head %}
  <style>
    .orgas tr td:first-child {
      vertical-align: middle;
    }

    .orgas th,
    .orgas td {
      line-height: 1.6;
      white-space: nowrap;
    }
  </style>
{%- endblock %}

{% block before_body %}
{{ render_main_tabs(current_page) }}
{%- endblock %}

{% block body %}

  <nav class="breadcrumbs">
    <ol>
      <li><a href="{{ url_for('.persons') }}">{{ brand.title }}</a></li>
    </ol>
  </nav>
  <h1>{{ title }} {{ render_extra_in_heading(orgas|length) }}</h1>

  <ol class="actions">
    {%- if g.current_user.has_permission(OrgaTeamPermission.administrate_memberships) %}
    <li><a href="{{ url_for('.create_orgaflag_form', brand_id=brand.id) }}">{{ render_icon('add') }} Person zum Orga ernennen</a></li>
    {%- endif %}
    <li><a href="{{ url_for('.export_persons', brand_id=brand.id) }}" download="organizers_{{ brand.id }}.csv">{{ render_icon('download') }} Exportieren <small>{{ 'als Excel-CSV'|dim }}</small></a></li>
  </ol>

  <table class="index wide orgas">
    <thead>
      <tr>
        <th>Avatar</th>
        <th>
          <NAME><br>
          Benutzername<br>
          Geburtstag, Alter
        </th>
        <th>
          Wohnort<br>
          E-Mail-Adresse<br>
          Telefonnummer
        </th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      {%- for user in orgas|sort(attribute='screen_name') %}
      <tr>
        <td>{{ render_user_avatar_small(user) }}</td>
        <td>
          <strong>{{ render_user_admin_link(user) }}</strong><br>
          {{ user.detail.full_name|fallback }}<br>
          {%- if user.detail.date_of_birth %}
            {{ render_icon('birthday') }}
            {{ render_date(user.detail.date_of_birth) }}
            ({{ user.detail.age }} Jahre)
          {%- else %}
            {{ (render_icon('birthday') ~ ' nicht angegeben')|dim }}
          {%- endif %}
        </td>
        <td>
          {{ render_icon('email') }} <a href="mailto:{{- user.email_address }}">{{ user.email_address|truncate(36, killwords=True, end='…') }}</a>
          <br>
          {{ render_icon('location') }}
          {{ user.detail.street|fallback }}
          &middot;
          {%- if user.detail.zip_code %}{{ user.detail.zip_code }} {% endif %}
          {{ user.detail.city|fallback }}
          &middot;
          {{ user.detail.country|fallback }}
          <br>
          {%- if user.detail.phone_number %}
            {{ render_icon('phone') }}
            {{ user.detail.phone_number }}
          {%- else %}
{'fraction_non_alphanumeric': 0.18713644673425295, 'fraction_numerical': 0.0016619577862722287, 'mean_word_length': 2.5928358208955222, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1566923', 'n_tokens_mistral': 2145, 'n_tokens_neox': 2017, 'n_words': 343}