X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/7946d6d82164bfa56906ad99152b6fb792352068..cf75f3aba45829a2bf7a0e469f3de9335d481d89:/Resources/views/user/index.html.twig?ds=sidebyside diff --git a/Resources/views/user/index.html.twig b/Resources/views/user/index.html.twig index 2e3b1bd..58417a7 100644 --- a/Resources/views/user/index.html.twig +++ b/Resources/views/user/index.html.twig @@ -6,16 +6,23 @@ <p>{{ description }}</p> </header> <div class="panel"> - {% if users is defined and users %} - <div class="grid two"> - {% for group, list in users %} + {% if groups is defined and groups %} + <div class="grid three"> + {% for group, users in groups %} <article class="cell"> <h3>{{ group }}</h3> <ul> - {% for id, user in list %} - <li><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user }}</a></li> + {% for id, user in users %} + <li><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user.pseudonym }}</a><a href="{{ path('rapsys_user_edit', {'mail': user.mail|short, 'hash': user.mail|short|hash}) }}">{% trans %}Modify{% endtrans %}</a></li> {% endfor %} - </ul> + </article> + {% endfor %} + </div> + {% elseif users is defined and users %} + <div class="grid four"> + {% for id, user in users %} + <article class="cell"> + <h3><a href="{{ path('rapsys_air_user_view', {'id': id}) }}">{{ user.pseudonym }}</a></h3> </article> {% endfor %} {#{% for date, day in organizers %}