{#- A community's members: who, their role, their posts, when they were last active here. Its managers add someone who has an account, change a role in place, remove someone after saying so, and do the same to several at once through the selection (ADS's datatable shows its bar once a box is ticked); inviting new people is the community's action, in its header. Above them, for its managers, who asks to join, if it is open on request: accepted or refused. Drawn in `mockups/templates/members.html`. -#} {% extends "ads_community.html" %} {% block page_title %}{{ _("Members") }} · {{ g.community.name }}{% endblock %} {% block content %} {% if can_manage_community and requests %}

{{ _("Asking to join") }} ({{ requests | length }})

{% endif %}
{% if can_manage_community %}
{{ icon("dots-vertical") }}
{% endif %}
{% if can_manage_community %} {#- Someone who has an account already; new people go through the invitation. -#}
{{ csrf.field() }} {#- No icon beside it: the picker wraps the field in its own box. -#}
{% endif %}
{{ icon("filter") }} {% for name, value in listing.filter_fields() %}{% endfor %} {{ ngettext("%(num)d member", "%(num)d members", listing.total) }} {% if listing.search %}{{ _("Show all") }}{% endif %}
{% if can_manage_community %} {#- The rows' boxes belong to this form (`form="members-selection"`): each row has a form of its own, for its role, and forms do not nest. -#}
{{ csrf.field() }} {{ _("Selection") }}
{% endif %}
{% if can_manage_community %}{% endif %} {{ m.sort_th(listing, "name", _("Name")) }} {{ m.sort_th(listing, "role", _("Role")) }} {{ m.sort_th(listing, "posts", _("Discussions started"), "ads-end ads-col--secondary") }} {{ m.sort_th(listing, "activity", _("Last active here"), "ads-end ads-col--secondary") }} {% if can_manage_community %}{% endif %} {% for user, m_id, role, last_activity_date in memberships %} {% if can_manage_community %}{% endif %} {% if can_manage_community %} {% endif %} {% else %} {% endfor %}
{{ _("Actions") }}
{{ m.avatar(user) }} {{ user.name }} {% if m.job(user) %}{{ m.job(user) }}{% endif %} {{ user.email }} {% if can_manage_community %}
{{ csrf.field() }}
{% elif role == "manager" %}{{ _("Community manager") }} {% else %}{{ _("Member") }}{% endif %}
{{ threads_count[user] }} {% if last_activity_date %}{{ m.time(last_activity_date) }}{% else %}{{ _("never") }}{% endif %}
{{ icon("dots") }}
{{ icon("mail") }}{{ _("Write") }}
{{ _("No matching records found") }}
{{ m.pagination(listing) }}
{% endblock %} {% block overlays %} {% if can_manage_community %} {#- One per member shown, filled by the server: no script needed. -#} {% for user, m_id, role, last_activity_date in memberships %}
{{ csrf.field() }}
{{ _("They will no longer see its discussions and documents. What they wrote stays.") }}
{% endfor %}
{{ _("They will no longer see its discussions and documents. What they wrote stays.") }}
{% endif %} {% endblock %}