{% extends "files/_layout.html" %} {% from "_macros.html" import icon %} {# The tick-tree access editor, for a chat's grants and for a data group's preset and floor (api/access_ui.py). The root row is `/`, everything: ticked, it gives the whole tree a level, and anything ticked below it says otherwise for its own part. #} {% block title %}{{ title }} - {{ brand.name }}{% endblock %} {% block heading %}{{ t("Access") }}{% endblock %} {% block page_content %} {% if chat is defined and chat %}
{{ icon("chevron-left", "icon--sm") }} {{ chat.title }}
{% elif group is defined and group %}{% if user.is_admin and not group.owner_id %}{{ icon("chevron-left", "icon--sm") }} {{ group.name }}{% else %}{{ icon("chevron-left", "icon--sm") }} {{ t("Data") }}{% endif %}
{% endif %}{{ lede }}
{% if chat is defined and chat %}{{ t("These are this chat's own grants.") if customised else t("This chat uses its data group's preset. Saving here gives it grants of its own.") }}
{% endif %}