{% import 'common/thumbnail.html.twig' as thumbnail %}
{% for basket_element in basket.getElements() %} {% set record = basket_element.getRecord(app) %}
{{basket_element.getOrd()}}
{{thumbnail.format(record.get_thumbnail(),165, 125, '', true, false)}}
{% for vote in basket_element.getVotes()%} {% if basket_element.getBasket().getParticipant(app.getAuthenticatedUser()).getCanSeeOthers() or vote.getParticipant().getUser() == app.getAuthenticatedUser() %}
{% if vote.getAgreement() == true %} {% set imguser = '' %} {% set styleuser = '' %} {% elseif vote.getAgreement() is null %} {% set imguser = ' ' %} {% set styleuser = 'margin-left:18px;' %} {% else %} {% set imguser = '' %} {% set styleuser = '' %} {% endif %}
{{imguser|raw}}

{{vote.getParticipant().getUser().getDisplayName()}}

{% if vote.getNote() != '' %}

{{vote.getNote()|nl2br}}

{% endif %}
{% endif %} {% endfor %}
{% endfor %}