From 93817fef3ead7cfd4fcde25ea2bcec02d01310a4 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 13 Sep 2024 19:57:43 +0200 Subject: A lot of changes again --- src/application/views/form_addpost.php | 2 +- src/application/views/form_delete_post_confirm.php | 17 ++- src/application/views/form_login.php | 2 +- src/application/views/template_end.php | 8 ++ src/application/views/template_start.php | 4 +- src/application/views/view_post.php | 53 +++++-- src/application/views/view_topic_start.php | 28 ++-- src/application/views/view_user.php | 154 ++++++++++++++++++++- 8 files changed, 232 insertions(+), 36 deletions(-) (limited to 'src/application/views') diff --git a/src/application/views/form_addpost.php b/src/application/views/form_addpost.php index b3cd6ca..88eda27 100644 --- a/src/application/views/form_addpost.php +++ b/src/application/views/form_addpost.php @@ -20,7 +20,7 @@ if (($_formError = RequestUtils::getAndClearFormError()) !== null) {
- +
diff --git a/src/application/views/form_delete_post_confirm.php b/src/application/views/form_delete_post_confirm.php index 9d04095..2dc417d 100644 --- a/src/application/views/form_delete_post_confirm.php +++ b/src/application/views/form_delete_post_confirm.php @@ -1,16 +1,21 @@
-

Do you want to delete your post?

+ id === $GLOBALS["currentUser"]->id): ?> +

Do you want to delete your post?

+ +

Do you want to delete displayName) ?>'s post?

+
- Are you sure you want to delete the following post: -
- content); ?> -
+ Are you sure you want to delete the following post:
+ true + ]) ?>