{% extends "user/dashboard.html" %} {% set group_type = h.default_group_type('group') %} {% block page_primary_action %} {% if h.check_access('group_create') %} {% link_for h.humanize_entity_type('group', group_type, 'add link') or _('Add Group'), named_route=group_type ~ '.new', class_="btn btn-primary", icon="plus-square" %} {% endif %} {% endblock %} {% block primary_content_inner %}

{{ h.humanize_entity_type('group', group_type, 'my label') or _('My Groups') }}

{% set groups = h.groups_available(am_member=True) %} {% if groups %}
{% snippet "group/snippets/group_list.html", groups=groups %}
{% else %}

{{ h.humanize_entity_type('group', group_type, 'you not member') or _('You are not a member of any groups.') }} {% if h.check_access('group_create') %} {% link_for _('Create one now?'), named_route=group_type ~ '.new' %} {% endif %}

{% endif %} {% endblock %}