diff --git a/templates/parts/edit/edit_form_styles.html.twig b/templates/parts/edit/edit_form_styles.html.twig index 8c1c36bc..609e4081 100644 --- a/templates/parts/edit/edit_form_styles.html.twig +++ b/templates/parts/edit/edit_form_styles.html.twig @@ -155,30 +155,28 @@ {% if attach is not null %} {% if not attach.hasInternal() %} -

-
+
{% trans %}attachment.external_only{% endtrans %} -
+ {% elseif attachment_manager.isInternalFileExisting(attach) %} -

-
- - {{ attach.filename|u.truncate(25, ' ...') }} - +
+
+ {{ attach.filename|u.truncate(25, ' ...') }} +

- - {{ attachment_manager.humanFileSize(attach) }} - -
+
+ {{ attachment_manager.humanFileSize(attach) }} +
+ {% if attach.secure %} -
+
{% trans %}attachment.secure{% endtrans %} -
+ {% endif %} {% if attach.secure and not is_granted('show_private', attach) %} @@ -191,12 +189,11 @@ {% trans %}attachment.view_local{% endtrans %} {% endif %} {% else %} -

-
+
{% trans %}attachment.file_not_found{% endtrans %} -
+ {% endif %} {% endif %}