From cc97f36b8c9a9522636d5b50fbcd2f52de06a01a Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sat, 14 Sep 2024 19:28:40 +0200 Subject: Add warning for logged out users when clicking attachment --- src/application/views/view_post.php | 4 ++-- src/application/views/view_topic_start.php | 26 ++++++++++++++++++++++++++ src/ui/site.css | 4 ++++ 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/src/application/views/view_post.php b/src/application/views/view_post.php index 26eec62..a7624ae 100644 --- a/src/application/views/view_post.php +++ b/src/application/views/view_post.php @@ -101,7 +101,7 @@ $your_are_the_author = $GLOBALS["currentUser"]?->id === $postAuthor?->id; - + @@ -116,7 +116,7 @@ $your_are_the_author = $GLOBALS["currentUser"]?->id === $postAuthor?->id; - = htmlentities($attachment->name) ?> + = htmlentities($attachment->name) ?> diff --git a/src/application/views/view_topic_start.php b/src/application/views/view_topic_start.php index 37e8cf8..fc54623 100644 --- a/src/application/views/view_topic_start.php +++ b/src/application/views/view_topic_start.php @@ -32,6 +32,32 @@ $canDelete = ($GLOBALS["currentUser"]?->id === $topicAuthor->id && $topicAuthor- + +