From f7a6123c404b126fd550cbb29aec82c88613ce02 Mon Sep 17 00:00:00 2001 From: winter Date: Tue, 28 Jan 2025 22:16:29 +0000 Subject: put attachments inside content warnings --- templates/note.php | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) (limited to 'templates') diff --git a/templates/note.php b/templates/note.php index f0f289c..f9eef45 100644 --- a/templates/note.php +++ b/templates/note.php @@ -66,33 +66,34 @@ if ($user != null) { -
- summary)): ?> -
- summary) ?> - + summary)): ?> +
+ summary) ?> + +
getFormattedContent('text/html') ?? htmlspecialchars($note->plainContent) ?> - summary)): ?> -
+
+ + attachments) > 0): ?> +
+ attachments as $attachment): ?> +
+ type, 'image/')): ?> + <?= $attachment->description ?? '' ?> + + + + description ?? basename($attachment->href) ?> + + +
+ +
- - attachments) > 0): ?> -
- attachments as $attachment): ?> -
- type, 'image/')): ?> - <?= $attachment->description ?? '' ?> - - - - description ?? basename($attachment->href) ?> - - -
- -
+ summary)): ?> +
-- cgit v1.3