{% if lazaretFiles is not none %} {% if lazaretFiles|length > 0 %}
{% set items = lazaretFiles | length %} {% set pages = (items / perPage) | ceil | min(10) %} {% for i in 1..pages %} {% endfor %}
{% else %} {{ "No document in quarantine" | trans }} {% endif %} {% else %} {{ "You do not have enough rights to access quarantine" | trans }} {% endif %}
{# @var file \Alchemy\Phrasea\Model\Entities\LazaretFile #} {% macro lazaretElement(app, file) %} {% import "common/thumbnail.html.twig" as thumb %} {% set records = file.getRecordsToSubstitute(app, true) %}
{{ "Last uploaded version" | trans }}
{# Store lazaret file id in hidden input #} {# Store lazaret file destination #}
{% set record_count = records|length %} {% if record_count > 0 %}
{% if record_count <= 1 %} {% trans %}A record matches the unique identifier :{% endtrans %} {% else %} {% trans with {'%record_count%' : record_count} %}%record_count% records match the unique identifier :{% endtrans %} {% endif %}
{% endif %} {% endmacro %}