{% extends "base.html" %} {% block title %}User Management - Admin - AutoModerate{% endblock %} {% block scripts %} {% endblock %} {% block content %}

User Management

All Users
{% if users.items %}
{% for user in users.items %} {% endfor %}
Username Email Status Role Projects Created Actions
{{ user.username }} {% if user.id == current_user.id %} You {% endif %} {{ user.email }} {% if user.is_active %} Active {% else %} Inactive {% endif %} {% if user.is_admin %} Admin {% else %} User {% endif %} {{ user.projects|length }} {{ user.created_at.strftime('%Y-%m-%d') }}
{% if user.id != current_user.id %}
{% endif %}
{% if users.pages > 1 %} {% endif %} {% else %}
No Users Found

There are no users in the system.

{% endif %}

{{ users.total }}

Total Users

{{ users.items|selectattr('is_active')|list|length }}

Active Users

{{ users.items|selectattr('is_admin')|list|length }}

Admin Users

{% endblock %}