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

Управление пользователями

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}

Фильтры и сортировка

{% for user in users %} {% endfor %}
ID Имя пользователя Email Роль Дата регистрации Действия
{{ user.id }} {{ user.username }} {{ user.email or '-' }} {% if user.role == 'admin' %}👑 Администратор {% else %}👤 Пользователь {% endif %} {{ user.created_at[:16] }} {% if user.role != 'admin' %}
{% endif %}
{% if not users %}

Нет пользователей для отображения

{% endif %}
{% endblock %}