From 4baf4b3aa5759bab6277bd3d49bd7bb7e0f4cba7 Mon Sep 17 00:00:00 2001 From: ale-rt Date: Tue, 30 Apr 2024 17:01:47 +0200 Subject: [PATCH] Support using the file template on objects that have no file attributes. Closes #688 --- news/688.bugfix | 1 + .../contenttypes/browser/templates/file.pt | 131 ++++++++++-------- 2 files changed, 73 insertions(+), 59 deletions(-) create mode 100644 news/688.bugfix diff --git a/news/688.bugfix b/news/688.bugfix new file mode 100644 index 000000000..5279988e1 --- /dev/null +++ b/news/688.bugfix @@ -0,0 +1 @@ +Support using the file template on objects that have no file attributes. [ale-rt] diff --git a/plone/app/contenttypes/browser/templates/file.pt b/plone/app/contenttypes/browser/templates/file.pt index 845af29c4..6da3fc036 100644 --- a/plone/app/contenttypes/browser/templates/file.pt +++ b/plone/app/contenttypes/browser/templates/file.pt @@ -12,75 +12,88 @@ -
+ + +
-
- -
+
+ +
- + - + -
- Filename -
+
+ Filename +
- + -
+
-
- Download -
+
+ Download +
+ + + + +

+ There is no file uploaded. +

+