{# Registered is the first to go on a narrow screen, last login is kept #}
{% trans "Registered" %}
{% trans "Last login" %}
{% endblock %}
{% block table-columns %}
{# The email address goes under the name, unless there is none or it is the name. #}
{% with name=obj.get_full_name|default:obj.get_username %}
{# A halo marks who can sign in to the admin: one for staff, a brighter one for a superuser. #}
{{ obj|initials }}
{% if change_perm in object_perms %}
{{ name }}
{% else %}
{{ name }}
{% endif %}
{% if obj.email and obj.email != name %}{{ obj.email }}{% endif %}
{% endwith %}
{{ obj.date_joined|date:"j M Y" }}
{% if obj.last_login %}{{ obj.last_login|date:"j M Y" }}{% else %}{% trans "Never" %}{% endif %}
{% endif %}
{% endblock %}
{# The list's one Delete: the base would add another from the record's own urls. #}
{% block row-buttons-delete %}
{% if delete_perm in object_perms %}
{% url 'admin:auth:users:delete' obj.pk as delete_url %}
{% include "touchtechnology/admin/workbook/_delete.html" with action=delete_url thing=obj.get_full_name|default:obj.get_username %}