{#- Who may see and change a folder, for its managers: the community's members as on the folder above (inheritance), or only the people given a role here; those people, and those who have a role through the folder above; beside it, what changed. People see communities and people here, never groups. -#} {% extends "ads_community.html" %} {% import "documents/_dialogs.html" as dialogs with context %} {% set kw = {"community_id": g.community.slug, "folder_id": folder.id} %} {% set roles = {"reader": _("Reader"), "writer": _("Writer"), "manager": _("Manager")} %} {% block page_title %}{{ _("Permissions") }} · {{ folder.title }} · {{ g.community.name }}{% endblock %} {#- A table of people and their role on the folder, filtered and sorted on its own; with `controls`, each role may be taken back. -#} {% macro people(listing, rows, controls) %}
| {{ _("Actions") }} | {% endif %}||
|---|---|---|
| {{ m.avatar(user, "ads-avatar--xs") }} {{ user.name }} {{ user.email }} | {{ roles.get(role | string, role) }} {%- if not user.can_login %}{{ _("Disabled") }} {%- elif controls and not has_access %}{{ _("Cannot reach it") }}{% endif %} | {% if controls %}{% endif %} |
| {{ _("No matching records found") }} | ||
{{ _("Nobody yet.") }}
{% endif %}{{ _("Nobody.") }}
{% endif %}