{% extends "space-settings-base.html" %} {% from "ui.html" import csrf_field with context %} {% set section = "members" %} {% block section %}

{{ _("Readers read and search; contributors drop into the inbox and edit the wiki. Organization administrators access all its spaces.") }}

{% set role_names = {"reader": _("Reader"), "contributor": _("Contributor")} %}

{{ _("Access by default") }}

{% if space.restricted %}

{{ _("Restricted") }} {{ _("Only the members added below, and the organization administrators, access this space: the organization's default role does not apply here.") }}

{% elif org_default %}

{{ _("Every member of the organization accesses this space as {role}, without being added. A member added below keeps their role here if it is higher.", role=role_names[org_default]|lower) }}

{% else %}

{{ _("The organization gives no default role: only the members added below, and the organization administrators, access this space.") }}

{% endif %} {% if manage %}
{{ csrf_field() }}

{{ _("For a space only some people should see (human resources, management). The default role is set in the organization's settings.") }}{% if default_setting == 'none' %} {{ _("The organization currently gives none.") }}{% endif %} {{ _("Organization settings") }}

{% endif %}

{{ _("Members added to the space") }}

{% set members_url = "/o/" ~ org.slug ~ "/" ~ space.slug ~ "/-/members" %} {% set role_labels = [("reader", _("Reader")), ("contributor", _("Contributor"))] %} {% set empty_text = _("No direct member.") %} {% if default_setting != "none" %} {% set add_help = _("Someone who is not a member of the organization yet becomes one, and then accesses every space of the organization that is not restricted as {role} (its default role).", role=role_names[default_setting]|lower) %} {% else %}{% set add_help = "" %}{% endif %} {% set remove_note = _("They keep access to this space as {role}, through the organization's default role.", role=role_names[org_default]|lower) if org_default else "" %} {% include "members-table.html" %}

{{ _("Access through the organization") }}

{% for person, effective in through_org %} {% else %} {% endfor %}
{{ _("Account") }}{{ _("Access") }}
{{ person.display_name }}
@{{ person.username }}
{% if effective == 'admin' %}{{ _("Organization administrator") }}{% else %}{{ _("{role}, by default", role=role_names[effective]) }}{% endif %}
{{ _("Nobody else.") }}
{% endblock %}