{% import 'prod/actions/Feedback/ListsMacros.html.twig' as ListsMacros %}
{#

#}
{% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADMIN')) %} {{ 'Add user' | trans }} {% endif %}
{% if list.getOwner(app.getAuthenticatedUser()).getRole() == constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %} {{ 'Share my list' | trans }} {% endif %}
{% set length = list.getEntries().count() %}

{{ list.getName() }}

({{ length }})) {# {% trans with {'%length%' : length} %}%length% peoples{% endtrans %} #}
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %} {% endif %}
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %} {% endif %}
{# {% set role = list.getOwner(app.getAuthenticatedUser()).getRole() %} {% for entry in list.getEntries() %} {{ ListsMacros.badgeReadonly(entry, role) }} {% endfor %} #}
{# #}
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %} {% endif %}