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

{% trans %}Utilisateurs{% endtrans %}

{% if q and field %}
{% trans %}Recherche d'utilisateurs avec {{ field }} correspondant à {{ q }}{% endtrans %}
{% trans page=users.page, total=users.total %}Page {{ page }} de {{ total }} résultats{% 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 %}Utilisateur{% endtrans %} {% trans %}Site web{% endtrans %} {% trans %}Affiliation{% endtrans %} {% trans %}Pays{% endtrans %}
{% if scores_visible() %} {{ user.name | truncate(50) }} {% else %} {{ user.name | truncate(50) }} {% 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 %}