diff --git a/site/plugins/admin/templates/content/entries/media.html b/site/plugins/admin/templates/content/entries/media.html index dc6bb5dc..03f46b8e 100644 --- a/site/plugins/admin/templates/content/entries/media.html +++ b/site/plugins/admin/templates/content/entries/media.html @@ -2,6 +2,11 @@ {% block content %} + + {% set allowed_image_files = ['jpeg', 'png', 'gif', 'jpg'] %} + + {% if files | length > 0 %} +
@@ -15,8 +20,6 @@
- {% set allowed_image_files = ['jpeg', 'png', 'gif', 'jpg'] %} - @@ -70,6 +73,22 @@ {% endfor %}
+ {% else %} +
+
+ {{ icon('fas fa-photo-video') }} +

{{ tr('admin_you_have_not_upload_any_files_yet') }}

+ + {{ csrf() }} + +
+ + +
+ +
+
+ {% endif %}