From e591374bb4b7d231fadf99d2e278806e53971919 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 28 Jan 2025 20:34:49 +0000 Subject: display attachments on notes --- templates/note.php | 17 +++++++++++++++++ templates/write_note_form.php | 11 +++++------ 2 files changed, 22 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/note.php b/templates/note.php index 4d05554..c69531b 100644 --- a/templates/note.php +++ b/templates/note.php @@ -77,6 +77,23 @@ if ($user != null) { + attachments) > 0): ?> +
+ attachments as $attachment): ?> +
+ type, 'image/')): ?> + + + + + description ?? basename($attachment->href) ?> + + +
+ +
+ +
@handle ?>
-
+
- -
-
- - + +
-- cgit v1.3