{{ 'Back to basket list' | trans }}

{% if not Basket.isVoteBasket() or Basket.isVoteInitiator(app.getAuthenticatedUser()) %} {% endif %} {{ Basket.getName()|length > 55 ? Basket.getName()|slice(0, 52) ~ '...' : Basket.getName() }}

{% set top = 0 %} {% if Basket.getPusher() %} {% set top = top + 40 %}

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

{% endif %} {% if Basket.isVoteBasket() %} {% set top = top + 160 %}

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

{% endif %} {% set top = top + 40 %}
{% set ElementsCount = Basket.getElements().count() %} {% if ElementsCount == 0 %} {{ 'No records' | trans }} {% elseif ElementsCount == 1 %} {{ '1 record' | trans }} {% else %} {% trans with {'%ElementsCount%' : ElementsCount} %}%ElementsCount% records{% endtrans %} {% endif %}
{% set top = top + 40 %} {% import 'common/thumbnail.html.twig' as thumbnail %}
{% for BasketElement in Basket.getElements() %} {% set record = BasketElement.getRecord(app) %}
{{record.get_original_name()}}
{{thumbnail.format(record.get_thumbnail,140,140, '', true, false)}}
{% endfor %}