{% load i18n l10n wagtailusers_tags wagtailadmin_tags %}
{% if ordering == "name" %} {% trans "Name" %} {% else %} {% trans "Name" %} {% endif %} | {% if ordering == "username" %} {% trans "Username" %} {% else %} {% trans "Username" %} {% endif %} | {% trans "Access level" %} | {% trans "Status" %} | {% trans "Last Login" %} |
---|---|---|---|---|
{% avatar user=user size="small" %}
{{ user|user_display_name }}
|
{{ user.get_username }} | {% if user.is_superuser %}{% trans "Admin" %}{% endif %} | {% if user.is_active %} {% trans "Active" as status_label %} {% status status_label classname="w-status--primary" %} {% else %} {% trans "Inactive" as status_label %} {% status status_label %} {% endif %} | {% if user.last_login %}{% human_readable_date user.last_login %}{% endif %} |