diff --git a/templates/display/import/compressions.twig b/templates/display/import/compressions.twig deleted file mode 100644 index e3834299bc..0000000000 --- a/templates/display/import/compressions.twig +++ /dev/null @@ -1,10 +0,0 @@ -{# We don't have show anything about compression, when no supported #} -{% if compressions is not empty %} -
-

- {{ 'File may be compressed (%s) or uncompressed.'|trans|format(compressions|join(', ')) }} -
- {% trans 'A compressed file\'s name must end in .[format].[compression]. Example: .sql.zip' %} -

-
-{% endif %} diff --git a/templates/display/import/file_option.twig b/templates/display/import/file_option.twig index b703595ba4..28ac2ff2b8 100644 --- a/templates/display/import/file_option.twig +++ b/templates/display/import/file_option.twig @@ -1,8 +1,17 @@

{% trans 'File to import:' %}

- {% include 'display/import/compressions.twig' with { - 'compressions': compressions - } only %} + + {# We don't have show anything about compression, when no supported #} + {% if compressions is not empty %} +
+

+ {{ 'File may be compressed (%s) or uncompressed.'|trans|format(compressions|join(', ')) }} +
+ {% trans 'A compressed file\'s name must end in .[format].[compression]. Example: .sql.zip' %} +

+
+ {% endif %} +
{% if is_upload and upload_dir is not empty %}