{% extends 'layout/base.html.twig' %} {% set i18n_prefix = _self|i18n_prefix %} {% block body %}
{% include 'components/layout/_title_3.html.twig' with { name: (i18n_prefix ~ '.title')|trans } %} {# include 'components/layout/_searchbar.html.twig' with { col: 'col col-lg-5', } #}
{% if app.user.userGroups is not empty %} {% if not app.user.getMyUserGroupsAsInvited.empty %}
{# user invitations to groups #} {% include 'components/layout/_title_5.html.twig' with { title: (i18n_prefix ~ '.user_invitations')|trans, rowClass: 'justify-content-center mt-4' } %}
    {% for item in app.user.getMyUserGroupsAsInvited %}
  • {% include 'components/group/_list-content.html.twig' with { item, needAction: true, isAdmin: item.membership.isAdmin() } %}
  • {% endfor %}
{% endif %} {% if not app.user.getMyUserGroupsAsConfirmed.empty %}
{# user groups #} {% include 'components/layout/_title_5.html.twig' with { title: (i18n_prefix ~ '.user_groups')|trans, rowClass: 'justify-content-center' } %}
    {% for item in app.user.getMyUserGroupsAsConfirmed %}
  • {% include 'components/group/_list-content.html.twig' with { item, needAction: item.membership.isAdmin() ? true : false, isAdmin: item.membership.isAdmin() } %}
  • {% endfor %}
{% endif %} {% else %}
{{ (i18n_prefix ~ '.no_group')|trans }}
{% endif %}
{{ (i18n_prefix ~ '.all_group')|trans }}
{% endblock %} {% block link %}{% endblock %}