{% 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 %}

{{ title }}

{{ 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 %}
{% with rows = [{"name": "/", "path": "/", "is_dir": false, "depth": 0, "rule": root_rule, "effective": root_rule or "none", "passage": false, "expanded": true}] %} {% include "access/_rows.html" %} {% endwith %} {% include "access/_rows.html" %}
{#- A path nobody here can see -- another person's, a directory yet to be made -- can still be given a rule by typing it. -#}

{{ t("For a path not in the tree above.") }}

{% if chat is defined and chat and customised %} {% endif %}
{% endblock %}