From efa9892cf8ec901049f2a05b0923577ef68d5893 Mon Sep 17 00:00:00 2001 From: Fabien MICHEL Date: Wed, 16 Oct 2024 17:04:44 +0200 Subject: [PATCH] fix: remove extra brace in generated HTML of data-max-filesize attribute (#1502) --- filer/templates/admin/filer/folder/directory_listing.html | 4 ++-- .../templates/admin/filer/folder/directory_table_list.html | 4 ++-- .../admin/filer/folder/directory_thumbnail_list.html | 6 +++--- filer/templates/admin/filer/widgets/admin_file.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/filer/templates/admin/filer/folder/directory_listing.html b/filer/templates/admin/filer/folder/directory_listing.html index dc37d3ee9..9b52cef2f 100644 --- a/filer/templates/admin/filer/folder/directory_listing.html +++ b/filer/templates/admin/filer/folder/directory_listing.html @@ -213,7 +213,7 @@

 

data-url="{% url 'admin:filer-ajax_upload' folder_id=folder.id %}" data-max-uploader-connections="{{ uploader_connections }}" data-max-files="{{ max_files|safe }}" - {% if max_filesize %}}data-max-filesize="{{ max_filesize|safe }}"{% endif %} + {% if max_filesize %}data-max-filesize="{{ max_filesize|safe }}"{% endif %} > {% trans "Upload Files" %} @@ -223,7 +223,7 @@

 

data-url="{% url 'admin:filer-ajax_upload' %}" data-max-uploader-connections="{{ uploader_connections }}" data-max-files="{{ max_files|safe }}" - {% if max_filesize %}}data-max-filesize="{{ max_filesize|safe }}"{% endif %} + {% if max_filesize %}data-max-filesize="{{ max_filesize|safe }}"{% endif %} > {% trans "Upload Files" %} diff --git a/filer/templates/admin/filer/folder/directory_table_list.html b/filer/templates/admin/filer/folder/directory_table_list.html index 64585a8d3..09e6e5fe0 100644 --- a/filer/templates/admin/filer/folder/directory_table_list.html +++ b/filer/templates/admin/filer/folder/directory_table_list.html @@ -4,7 +4,7 @@ + {% if max_filesize %}data-max-filesize="{{ max_filesize|safe }}"{% endif %}>