{% extends "config/base.html" %} {% import "site_shell/_macros.html" as ui %} {% block title %}Users - Pychestrate Configuration{% endblock %} {% block content %}
{% if show_deleted %}{% endif %} Clear {% if show_deleted %} Hide deleted accounts {% else %} Show deleted accounts {% endif %}
{{ ui.icon("download") }} Download CSV {{ ui.icon("add") }} Create User
{% for user in users %} {% else %} {{ ui.empty_state("No users found", colspan=6) }} {% endfor %}
Username Email Display Name Status Roles Actions
{{ user.username }} {{ user.email }} {{ user.display_name }} {% if user.status == 'anonymised' %} Deleted {% elif user.status == 'invited' %} Invited {% elif user.is_active %} Active {% else %} Inactive {% endif %} {{ user.roles | join(', ') }}
{% if user.status != 'anonymised' %} Edit {% endif %} {% if user.status == 'anonymised' %} Erased {% elif user.id == current_user_id %} (you) {% elif user.is_active %}
{% elif user.status == 'inactive' %}
{% endif %}
{{ ui.pagination('config.user_list', page, total_pages, {'search': search, 'show_deleted': '1' if show_deleted else ''}) }}

Total: {{ total }} user{{ '' if total == 1 else 's' }}

{% endblock %}