{% import "helper.twig" as helper %}
{% trans %}attachment.name{% endtrans %} | {% trans %}attachment.attachment_type{% endtrans %} | {% trans %}attachment.file_name{% endtrans %} | {% trans %}attachment.file_size{% endtrans %} | ||
---|---|---|---|---|---|
{% import "components/attachments.macro.html.twig" as attachments %} {{ attachments.attachment_icon(attachment, attachment_manager) }} | {{ attachment.name }} | {{ attachment.attachmentType.fullPath }} | {% if attachment.hasInternal() %} {{ attachment.filename }} {% endif %} |
{% if not attachment.hasInternal() %}
{% trans %}attachment.external_only{% endtrans %}
{% elseif attachment_manager.internalFileExisting(attachment) %}
{{ attachment_manager.humanFileSize(attachment) }}
{% else %}
{% trans %}attachment.file_not_found{% endtrans %}
{% endif %}
{% if attachment.secure %}
{% trans %}attachment.secure{% endtrans %} {% endif %} {% if attachment == part.masterPictureAttachment %} {% trans %}attachment.preview{% endtrans %} {% endif %} |