{% extends "base.html" %} {% block content %}

{% trans %}Users{% endtrans %}

{% if q and field %}
{% trans %}Searching for users with {{ field }} matching {{ q }}{% endtrans %}
{% trans page=users.page, total=users.total %}Page {{ page }} of {{ total }} results{% endtrans %}
{% endif %} {% with form = Forms.users.PublicUserSearchForm(field=field, q=q) %}
{{ form.field(class="form-select w-100") }}
{{ form.q(class="form-control w-100", placeholder=form.q.description) }}
{% endwith %}

{% for user in users.items %} {% endfor %}
{% trans %}User{% endtrans %} {% trans %}Website{% endtrans %} {% trans %}Affiliation{% endtrans %} {% trans %}Country{% endtrans %}
{% if scores_visible() %} {{ user.name | truncate(50) }} {% else %} {{ user.name | truncate(50) }} {% endif %} {% if user.bracket_id %} {{ user.bracket.name }} {% endif %} {% if user.oauth_id %} {% trans %}Official{% endtrans %} {% endif %} {% if user.website and (user.website.startswith('http://') or user.website.startswith('https://')) %} {% endif %} {% if user.affiliation %} {% if user.affiliation | length > 50 %} {% if user.affiliation %}{{ user.affiliation | truncate(50) }}{% endif %} {% else %} {% if user.affiliation %}{{ user.affiliation | truncate(50) }}{% endif %} {% endif %} {% endif %} {% if user.country %} {{ lookup_country_code(user.country) }} {% endif %}
{% if users.pages > 1 %}
{% trans %}Page{% endtrans %}
{% if users.page != 1 %} <<< {% endif %} {% if users.next_num %} >>> {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {{ Assets.js("assets/js/users/list.js") }} {% endblock %}