{% extends "community/_base.html" %} {% from "macros/box.html" import m_box, m_box_menu with context %} {% block header %}{% endblock %} {% block content %} {%- call m_box(title=_("My communities")) %} {%- set is_admin = current_user.has_role('admin') %}
{%- if my_communities %} {%- for community in my_communities %} {%- endfor %}
{{ community.name }}
{{ community.description }}
{{ community.membership_count }} - {{ community.document_count }} - {{ community.last_active_at | age }}
{% else %} {{ _("You're not a member of a community yet.") }} {% endif %} {% endcall %} {% endblock %} {% block sidebar %} {% if current_user.has_role("admin") %} {% call m_box_menu() %}
{{ _("Create new community") }}
{% endcall %} {% endif %} {% endblock %}