{# Account and sessions page (spec section 10.2). Context: user AuthUser -- email, display_name, roles sessions Sequence[SessionSummary] logout_url str -- POST target, default "logout" logout_all_url str -- POST target, default "logout-all" revoke_session_url str -- POST target for one session; the row posts the session id in a hidden `session_id` field. The revoke column is omitted when this is absent. show_logout_all bool -- mirrors features.logout_all_enabled; the "sign out everywhere" form renders unless this is passed and falsy error str -- optional banner notice str -- optional confirmation banner Nothing here renders a token: SessionSummary carries no credential material. #} {% extends "base.html" %} {% block page_title %}{{ title }} · Account{% endblock %} {% block card_class %}fa-card fa-card--wide{% endblock %} {% block heading %}Your account{% endblock %} {% block subheading %}{% endblock %} {% block content %} {% if error %} {% endif %} {% if notice %}

{{ notice }}

{% endif %}
Email
{{ user.email }}
Display name
{{ user.display_name or "Not set" }}
Roles
{% if user.roles %} {% else %} None {% endif %}

Active sessions

{% if sessions %}
{% if revoke_session_url %} {% endif %} {% for session in sessions %} {% if revoke_session_url %} {% endif %} {% endfor %}
Device Signed in Last usedActions
{{ session.user_agent_label or "Unknown device" }} {% if session.is_current %} This device {% endif %} {% if session.is_current %} Current {% else %}
{% endif %}
{% else %}

No active sessions.

{% endif %}
{% if show_logout_all is not defined or show_logout_all %}
{% endif %}
{% endblock %}