{% import 'common/thumbnail.html.twig' as thumbnail %}
{% if Total == 0 %} {{ 'No results' | trans }} {% elseif Total == 1 %} {{ '1 result' | trans }} {% else %} {% trans with {'%Total%' : Total} %}%Total% results{% endtrans %} {% endif %} {% if Page - 1 > 0 %} {% endif %} Page {{ Page }} / {{ MaxPage }} {% if Page + 1 <= MaxPage %} {% endif %}
{% for Basket in Baskets %}
×
{% set BasketElement = Basket.getElements().first() %} {% if BasketElement %} {{thumbnail.format(BasketElement.getRecord(app).get_thumbnail(), 80, 80, '', true, false)}} {% endif %}
{{ Basket.getElements().count() }}

{% if Basket.getValidation() is empty or Basket.getValidation().isInitiator(app.getAuthenticatedUser()) %} {% endif %} {{ Basket.getName() }}

{% if Basket.getPusher() %}

{% set user_name = '' ~ Basket.getPusher(app).get_display_name() ~ '' %} {% trans with {'%user_name%' : user_name} %}Received from %user_name%{% endtrans %}

{% endif %} {% if Basket.getValidation() %}

{% set list_participants = '' %} {% for Participant in Basket.getValidation().getParticipants() %} {% if list_participants != '' %} {% set list_participants = list_participants ~ ', ' %} {% endif %} {% set list_participants = list_participants ~ '' %} {% set list_participants = list_participants ~ Participant.getUser().getDisplayName() %} {% set list_participants = list_participants ~ '' %} {% endfor %} {% trans with {'%list_participants%' : list_participants} %}Sent for validation to %list_participants%{% endtrans %}

{% endif %}
{% endfor %}