{#- The directory: people as rows, to find someone by name or organization; whom I share a community with first, and those communities; what each does, and where; when each was last seen. Drawn in `mockups/templates/people.html`. -#} {% extends "ads_base.html" %} {% block page_title %}{{ _("Directory") }}{% endblock %} {% block heading %}{{ _("Directory") }}{% endblock %} {% block body %}
{% if counts.mine %}
{% endif %}
{{ icon("filter") }} {% for name, value in listing.filter_fields() %}{% endfor %} {{ ngettext("%(num)d person", "%(num)d people", listing.total) }} {% if listing.search %}{{ _("Show all") }}{% endif %}
{{ m.sort_th(listing, "name", _("Name")) }} {{ m.sort_th(listing, "last_active", _("Last seen"), "ads-end") }} {% for person in users %} {% else %} {% endfor %}
{{ _("Organization") }} {{ _("Communities in common") }}
{{ m.avatar(person) }}{{ person.name }}{% if person.job_title %}{{ person.job_title }}{% endif %} {{ person.organization or "" }} {% set common = shared[person.id] %} {% for c in common[:4] %}{{ m.tile(c, "sbe-tile--sm") }}{% endfor %}{% if common | length > 4 %}+{{ common | length - 4 }}{% endif %} {% if person.last_active %}{{ m.time(person.last_active) }}{% else %}{{ _("never") }}{% endif %}
{{ _("No matching records found") }}
{{ m.pagination(listing) }}
{% endblock %}