{% import 'common/thumbnail.html.twig' as thumbnail %}
{% if Total == 0 %} {{ 'No results' | trans }} {% elseif Total == 1 %} {{ '1 result' | trans }} {% else %} {{ "%Total% results" | trans({'%Total%' : Total}) }} {% endif %}
{% for Basket in Baskets %}
 
{% set BasketElement = Basket.getElements().first() %} {% if BasketElement %} {{thumbnail.format(BasketElement.getRecord(app).get_thumbnail(), 150, 106, '', true, false)}} {% endif %}

{% if not Basket.isVoteBasket() or Basket.isVoteInitiator(app.getAuthenticatedUser()) %}     {% endif %} {{ Basket.getName()|length > 80 ? Basket.getName()|slice(0, 77) ~ '...' : Basket.getName() }}
{{ Basket.getElements().count() }} {{ ' records' }}

{% if Basket.getPusher() %}

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

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

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

{% endif %}
{% endfor %}