{% extends "base.html" %} {% from "icons.html" import icon, sep %} {% from "ui.html" import section_tabs with context %} {% set sections = [("profile", "/account", _("Profile")), ("security", "/account/security", _("Security")), ("assistants", "/account/assistants", _("AI assistants"))] %} {% set section_title = sections|selectattr(0, "equalto", section)|map(attribute=2)|first %} {# Temporary password (chosen by an admin): only one thing to do, without tabs that would lead back here. #} {% set forced = user.must_change_password %} {% block title %}{% if forced %}{{ _("Choose my password") }}{% else %}{{ section_title }} · {{ _("My account") }}{% endif %} · Synaptane{% endblock %} {% block crumbs %}{{ sep() }}{{ _("My account") }}{{ sep() }}{{ section_title }}{% endblock %} {% block content %} {% if forced %}
{% block forced %}{% endblock %}
{% else %} {{ section_tabs(_("Account sections"), sections, section) }}
{% block section %}{% endblock %}
{% endif %} {% endblock %}