{% extends 'settings/layout.html' %} {% load i18n %} {% load utilities %} {% block title %}{% trans "Users" %}{% endblock %} {% block header %} {% if server %} {% blocktrans with instance_name=server.server_name %}Users: {{ instance_name }}{% endblocktrans %} Clear filters {% else %} {% trans "Users" %} {% endif %} {% endblock %} {% block panel %} {% include 'settings/users/user_admin_filters.html' %}
{% url 'settings-users' as url %} {% if status != "local" %} {% endif %} {% for user in users %} {% if status != "local" %} {% endif %} {% endfor %}
{% trans "Username" as text %} {% include 'snippets/table-sort-header.html' with field="username" sort=sort text=text %} {% trans "Date Added" as text %} {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} {% trans "Last Active" as text %} {% include 'snippets/table-sort-header.html' with field="last_active_date" sort=sort text=text %} {% trans "Status" as text %} {% include 'snippets/table-sort-header.html' with field="is_active" sort=sort text=text %} {% trans "Remote instance" as text %} {% include 'snippets/table-sort-header.html' with field="federated_server__server_name" sort=sort text=text %}
{{ user|username }} {{ user.created_date }} {{ user.last_active_date }} {% if user.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} ({{ user.get_deactivation_reason_display }}) {% endif %} {% if user.federated_server %} {{ user.federated_server.server_name }} {% else %} {% trans "Not set" %} {% endif %}
{% include 'snippets/pagination.html' with page=users path=request.path %} {% endblock %}