{# Per-user table row, used both in the full users.html page and as an htmx
swap target for role change and disable/enable mutations. The variable `u`
is one User model instance; `csrf_users` and `current_admin` come from the
page context. #}
{% if u.disabled_at is not none %}
Disabled
{% else %}
Active
{% endif %}
{{ format_clock_time(u.created_at) }}
{% if u.username != current_admin %}
{% if u.disabled_at is not none %}
{% else %}
{% endif %}
Reset password
{% else %}
Use the CLI to change your own password
{% endif %}