{#- Every community, for the site's administrators, whether they are in it or not: its managers, its members and documents, when it last moved; filtered by name; a row's ⋯ for its settings and its members. No mockup: the mockup's tab led to making one, which the button above does. -#} {% extends "admin/_ads.html" %} {% block page_title %}{{ _("Communities") }} · {{ _("Administration") }}{% endblock %} {% block heading %}{{ _("Communities") }}{% endblock %} {% block actions %}{{ icon("plus") }}{{ _("New community") }}{% endblock %} {% block content %}
{{ ngettext("%(num)d community", "%(num)d communities", listing.total) }}
{{ icon("filter") }} {% for name, value in listing.filter_fields() %}{% endfor %}
{{ m.sort_th(listing, "name", _("Community")) }} {{ m.sort_th(listing, "members", _("Members"), "ads-end") }} {{ m.sort_th(listing, "documents", _("Documents"), "ads-end ads-col--secondary") }} {{ m.sort_th(listing, "last_active", _("Last activity"), "ads-end") }} {% for community in communities %} {% else %} {% endfor %}
{{ _("Managers") }}{{ _("Actions") }}
{{ m.tile(community, "sbe-tile--sm") }}{{ community.name }} {%- for manager in managers.get(community.id, []) %}{{ manager.name }}{{ ", " if not loop.last }}{% else %}{{ _("None") }}{% endfor -%} {{ community.membership_count }} {{ community.document_count }} {{ m.time(community.last_active_at) }}
{{ icon("dots") }}
{{ _("No matching records found") }}
{{ m.pagination(listing) }}
{% endblock %}