{% extends "admin-base.html" %} {% from "ui.html" import csrf_field, when with context %} {% block page_title %}{{ account.display_name }} · {{ _("Accounts") }}{% endblock %} {% block section_crumbs %}{{ _("Accounts") }}{{ sep() }}{{ account.display_name }}{% endblock %} {% block section %}

← {{ _("All accounts") }}

{{ account.display_name }}

@{{ account.username }}

{% if account.is_superadmin %}{{ _("Super admin") }}{% endif %}{% if not account.is_active %}{{ _("Disabled") }}{% endif %}
{{ _("Email") }}
{% if account.email %}{{ account.email }}{% if not account.email_verified_at %} ({{ _("address not verified") }}){% endif %}{% else %}{{ _("No address") }}{% endif %}
{{ _("Sign in") }}
{{ _("Password") if account.password_hash else _("SSO") }}{% if account.must_change_password %} ({{ _("to be changed at next sign-in") }}){% endif %}
{{ _("Created on") }}
{{ when(account.created_at, "date") }}
{% if account.id == user.id %}

{{ _("This is your account: your rights can only be changed by another super admin.") }} {{ _("Change my password") }}

{% else %} {# Both settings go through the same submit: each form sends the other one back unchanged. #}

{{ _("Permissions") }}

{{ csrf_field() }} {% if account.is_active %}{% endif %}

{{ _("Manages the whole instance and reads all content.") }}

{{ _("Reset password") }}

{{ csrf_field() }}

{{ _("At least 12 characters. Closes their sessions and tokens; the person will choose another one at next sign-in.") }}

{{ csrf_field() }} {% if account.is_superadmin %}{% endif %} {% if account.is_active %}

{{ _("Deactivate account") }}

{{ _("The person can no longer sign in; their sessions and tokens are closed. Their content stays, and the account can be reactivated at any time.") }}

{% else %}

{{ _("Account deactivated") }}

{{ _("The person cannot sign in. Reactivating does not reopen their old sessions.") }}

{% endif %}
{% endif %} {% endblock %}